textboxes from another window???

S

Samir

1. Here is a form on the first page

<form method="POST" name="originalwindow" name="form1">
<p><input type="text" name="T1" size="20"></p>
<p><input type="button" value="Submit" name="B1" onclick="This event opens
the new window"><input type="reset" value="Reset" name="B2"></p>
</form>

2. When you click the submit it opens a new window with this form

<form method="POST" name="openwindowform" name="form2">
<p><input type="text" name="T1" size="20"></p>
<p><input type="button" value="Submit" name="B1"
onclick="savenow()"><input type="reset" value="Reset" name="B2"></p>
</form>


<script language="javascript">
fucntion savenow(){
window.opener.form1.T1.value = form2.T1.value

form.submit()
}
</script>

3. is this correct at all???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top