开发者

how can i reference form data from the referring document?

Hi I have a web page that opens up from another page after the u开发者_JS百科ser clicks a link. What i want to do using JS is reference the form data from the original page and use it on the page that has just been opened . my first page contains something like

 function date_change() {
  window.open("//www.abbeysoft.co.uk/adi/datepicker.php");
 } 

Then i want to use something like the code below in page two

 nam = document.form1.name.value

is this something I can do easily

Any hints or pointers would be great

thanks


window.opener.document.forms["form1"].elements["fieldname"].value will get you to the value of any object in a given form.


With opener

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜