I want to pull a value using ONLY javascript from another page. I tried with common javascript file between pages, but i was failed… Here’s example…
Page 1:
1. A textfield(1) on PAGE 1 (its empty)
2. A button(1) on PAGE 1
Page 2:
1. A textfield(2) on PAGE 2
2. A button(2) on PAGE 2
Working :
1. On a button(1) click on PAGE 1, a new window opens i.e. PAGE 2 and the old window will be intact(will not be closed)
2. After opening new window, i have entered some text in textfield(2) on PAGE 2
2. On a button(2) click on PAGE 2, the value entered in textfield(2) should be inserted into PAGE 1 ‘s textfield(1).
NOTE : If possible with JQuery, then its my secondary choice if javascript doesnt works…
check this image : http://i25.lulzimg.com/54e219.jpg
Assuming both pages are served from the same domain, you can use window.opener to refer to
page1frompage2: