1 Replies - 897 Views - Last Post: 12 August 2011 - 03:06 PM

#1 Narlonb  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 27-October 07

Copying Form Data to a New Window

Posted 12 August 2011 - 02:30 PM

How could I use Javascript to copy form data in text boxes on one form to the text boxes in another form in a different browser window.

For instance, if I have the following form in the main window:


<form name="form1">
<input name="your_name" type="text" size="15" value="John Doe" />
<input name="todays_date" type="text" size="15" value="8/12/2011" />
</form>




Here's the psudocode for the second form:


Upon clicking that link a second window opens containing the form:
<form name="form2">
<input name="full_name" type="text" size="15" />
<input name="todays_date" type="text" size="15" />
</form>




How could I use Javascript so that the click of a button will copy the contents of "your_name" and "todays_date" in form1 to the new window's "full_name" and "todays_date"in form2?

Thanks much!

Is This A Good Question/Topic? 0
  • +

Replies To: Copying Form Data to a New Window

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6063
  • View blog
  • Posts: 23,515
  • Joined: 23-August 08

Re: Copying Form Data to a New Window

Posted 12 August 2011 - 03:06 PM

I'm pretty sure there's no way to do this in Javascript.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1