Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q740 How do I retrieve the source of an image used in a form in the popup windows opener window and use it for display?

You are here: irt.org | FAQ | JavaScript | Window | Q740 [ previous next ]

Try:

<form name=MainForm method=POST action=/cgi-bin/webRequester>

<img name=MainWindow src="/images/random_name.gif"><br>

</form>

And then in the popup window:

<SCRIPT LANGUAGE="JavaScript"><!--
if (document.images)
    document.write('<img src=' + opener.document.images['MainWindow'].src + '>');
//--></SCRIPT>

©2018 Martin Webb