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

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?

irt.org | Knowledge Base | JavaScript | Window | Q740 [ previous next ]

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?

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.