Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

window.open() not working in IE11

I've searched many links for my query. But couldn't get the one I want. Am using in window.open(url, '_blank') in my script on click of button(am not using any html here, I want it to be on button click only). Its working in Chrome, IE8. I want to open a new tab in the same window in IE11. I don't want to do any settings in Internet Options of IE. Because the script has to work in every system, if I go with manual settings the script won't run in all the systems where ever I test. Is there any bug with IE11 ?

like image 900
HookUp Avatar asked Nov 25 '14 06:11

HookUp


1 Answers

Window.open() itself opens in new tab, Just remove "_blank". Use the below code.

window.open(url);
like image 144
prakashstar42 Avatar answered Oct 06 '22 19:10

prakashstar42