My Requirement
Form Submission in New Window & Redirect Existing Page to a new page on same click.
When I tried only Form submission is happening. Javascript function to redirect is not working.
Html
<form id="feedback.php" name="form1" method="post" action="feedback.php" target="_blank"> <input type="submit" class="button" value="SUMBIT" onclick="btntest_onclick();"/> </form> Javascript
<script> function btntest_onclick() { window.location.href("mainpage.php"); } </script> Actual
But Only Form Submission is Happening in New Window. Existing Page is not redirected.
Please tell me how to do this ?