Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Window.open not working in IE8?

IE8 doesn't like spaces in the window name.


Removing the space from the window name solved the problem.


In IE8, the below function was not opening a new window pop up whereas it was working perfectly in Mozilla and Chrome.

function openReports(reportUrl){
   window.open(reportUrl,'Report Information','height=800,width=1000,left=200,top=200,toolbars=no,resizable=no,scrollbars=auto,location=no');
}

Removing the space (Report Information)from the window name solved the problem for me too.


This works for me:

javascript:window.open('http://google.com', 'x'+'winName'+'x', 'location=0', 'status=0', 'toolbar=0', 'menubar=0', 'resizable=0', 'scrollbars=0', 'height=375', 'width=420');

I too had a problem with this issue. I had written a function like

function newPopup(url) {
      popupWindow=window.open(url,'Detailed Informations','height=700,width=1000,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}

where there was a space in the window name i.e "Detailed Information" and due to this the popup was not working. Just dont put any spaces in the window name.