jaymc Posted September 12, 2007 Share Posted September 12, 2007 How can you submit a form and have it loaded into a popup that is generated when submitting Normally in the form you would specify target=BLANK How can you have the form loaded into a new popup Link to comment https://forums.phpfreaks.com/topic/68937-form-post-to-popup/ Share on other sites More sharing options...
mainewoods Posted September 16, 2007 Share Posted September 16, 2007 <form action="url" target="winname" onsubmit="window.open('','winname',specs);return true;"> Giving the form the same target name as the window opened in the onsubmit should do it. A delay of some sort might be necessary before the 'return true' so the new window is initialized and its name is known before the form actually submits. Link to comment https://forums.phpfreaks.com/topic/68937-form-post-to-popup/#findComment-349793 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.