You are here: irt.org | FAQ | JavaScript | Window | Q1705 [ previous next ]
Try:
<html> <head> <script language="JavaScript"><!-- var windowReference; function openPopup() { windowReference = window.open('popup.htm','windowName'); if (!windowReference.opener) windowReference.opener = self; } //--></script> </head> <body> <form name="formName" onSubmit="alert('submit triggered')"> </form> </body> </html>
And then in popup.htm:
<form> <input type="button" value="Submit" onClick="opener.document.formName.submit()"> </form>