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

Q638 How can I display the results of a form in a new window opened with window.open()?

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

Q638 How can I display the results of a form in a new window opened with window.open()?

Make sure the target attribute specifies the same value as the windows open() methods 2nd parameter:

<form method="post" target="myWindow" onSubmit="window.open('about:blank','myWindow')">
...

Using about:blank loads an initial blank page, but this is not supported in all older browsers so it would be better to create your own blank page and load that instead.

Feedback on 'Q638 How can I display the results of a form in a new window opened with window.open()?'


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.