chanchelkumar Posted December 6, 2010 Share Posted December 6, 2010 Hi everyone... am trying to submit a form using javascript and i need that action page to be opened in a new tab... but the popup blocker is blocking me ... anyone please help me.. Please cehck the code am attached to check.... <form name="go_chk" id="go_chk" action="../newPage.php" method="post"> <table cellpadding="0" cellspacing="0" align="center"> <tr> <td> <input type="hidden" name="user_idf" id="user_idf" value="2" /> </td> </tr> </table> </form> <script type="text/javascript" language="javascript"> document.go_chk.target="_blank"; document.go_chk.submit(); </script> Link to comment https://forums.phpfreaks.com/topic/220801-javascript-form-submission-popup-blocker-blocks-new-tab/ Share on other sites More sharing options...
trq Posted December 6, 2010 Share Posted December 6, 2010 There not called pop-up blockers for nothing. You would be better off using an overlay rather than opening a new page. Link to comment https://forums.phpfreaks.com/topic/220801-javascript-form-submission-popup-blocker-blocks-new-tab/#findComment-1143529 Share on other sites More sharing options...
chanchelkumar Posted December 6, 2010 Author Share Posted December 6, 2010 thanks Thorpe.. But i need to open the page in to a new window.. so as to link it to other data.. Link to comment https://forums.phpfreaks.com/topic/220801-javascript-form-submission-popup-blocker-blocks-new-tab/#findComment-1143540 Share on other sites More sharing options...
trq Posted December 6, 2010 Share Posted December 6, 2010 Are you positive? Overlays give the impression of a new window without actually being one. For this reason they are not blocked by pop-up blockers. Otherwise, your just going to have to live with the pop-up blockers I'm afraid. People have them on for a reason, they don't want pop-ups. Link to comment https://forums.phpfreaks.com/topic/220801-javascript-form-submission-popup-blocker-blocks-new-tab/#findComment-1143549 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.