Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q408

irt.org | About | Feedback | 1237 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q408

Sent by
Robert Watkins on May 16, 2000 at 08:32:02:

Comments:
I expected that the code provided would allow me to
* open a page (main.html)
* enter data in the field in popup.html
* Submit form on popup.html
* The form on main.html should be automatically submitted and I should see nextpage.html

This doesn't work in IE5 NN4.01 NN4.72.

Any ideas?

main.html
_________________________________
<html>
<head>
<script language="JavaScript">
function windowOpen() {
var myWindow=window.open('popup.html','windowRef','width=200,height=200');
if (!myWindow.opener) myWindow.opener = self;
}
windowOpen();
</script>
</head>
<body>
<form action="nextpage.html">
<input type="text" value="" name="output">
</form>
</body>
</html>


popup.html
________________________________________
<html>
<head>
<script language="JavaScript">
function updateOpener() {
opener.document.forms[0].output.value = document.forms[0].input.value;
opener.document.forms[0].submit;
window.close();
}
</script>
</head>
<body>
<form onSubmit="updateOpener()">
<input type="text" value="" name="input">
<input type="submit">
</form>
</body>
</html>


nextpage.html
__________________________________
<html>
<head>

</head>
<body>
Next page
</body>
</html>


Other feedback on 'irt.org FAQ Knowledge Base Q408' - show all


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.