phppup Posted March 21, 2012 Share Posted March 21, 2012 I have the code so that onClick of a submit button, a new window opens with information. Now I want to move to a new window in the SAME browser, what is the code for that, so that it functions as if an <a href> tag were clicked? Quote Link to comment https://forums.phpfreaks.com/topic/259425-open-new-window-in-same-browser/ Share on other sites More sharing options...
mdvignesh Posted March 23, 2012 Share Posted March 23, 2012 U can use window.open() Quote Link to comment https://forums.phpfreaks.com/topic/259425-open-new-window-in-same-browser/#findComment-1330481 Share on other sites More sharing options...
Adam Posted March 23, 2012 Share Posted March 23, 2012 Opening in the same browser window is the default behaviour for a form. Are you meaning tabs? Quote Link to comment https://forums.phpfreaks.com/topic/259425-open-new-window-in-same-browser/#findComment-1330499 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.