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" ? 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'); 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
Archived
This topic is now archived and is closed to further replies.