HomeArticlesFAQsXREFGamesSoftwareInstantBooksBBSAboutFOLDOCRFCsFeedbackSearchSite-Map
logo

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

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

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()?'

©2011 Martin Webb