Jump to content

Javascript Form submission :Popup blocker blocks new tab


chanchelkumar

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.