Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Copy values from one form to another in different window

6:02 pm on Jan 8, 2005 (gmt 0)

New User

10+ Year Member

joined:Jan 8, 2005
votes: 0

I am trying to figure how I can transfer data from a form located in one window to a form located in another window. Both windows are already open. The first window contains the form named 'form1' with the values filled in. A new window named 'second_window' is opened and on it is an HTML page with an empty form named 'form2'. The text input element named 'your_name' in form 'form1' is filled with the value 'John Doe'. I need to get that value in 'your_name' on 'form1' to the text input element in 'form2' named 'realName'.

How could I go about accomplishing the above?

I have been searching the internet on how to do this for weeks but have not found anything that explains it. I am somewhat new to JavaScript and any help would be appreciated.


1:59 am on Jan 9, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:July 20, 2001
votes: 0

This is an old demo [cross-browser.com], but it might be helpful.