AndrewC14 Posted May 5, 2012 Share Posted May 5, 2012 Hey guys! how could you use location.href="url" to target a new tab rather than it staying on the same tab. Would you use target="_blank" ? Quote Link to comment https://forums.phpfreaks.com/topic/262134-using-locationhref-and-opening-up-a-new-tab/ Share on other sites More sharing options...
The Letter E Posted May 15, 2012 Share Posted May 15, 2012 Hey guys! how could you use location.href="url" to target a new tab rather than it staying on the same tab. Would you use target="_blank" ? You wouldn't use location for something like that, you want window.open(url, '_blank'); Quote Link to comment https://forums.phpfreaks.com/topic/262134-using-locationhref-and-opening-up-a-new-tab/#findComment-1345744 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.