Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

call to window.open() returns null on IE 11 + Windows 8.1 Preview

I am doing somethig like this,where MyConfig is a aspx page.

   winOpen=window.open('/Account/Register','MyConfig','toolbar=no,status=no,location=no,menubar=0,resizable=yes,scrollbars=yes,width=' + wWidth + ',height='+ wHeight + ',top=' + wTop + ',left=' +wLeft);

winOpen.focus();

It returns null.It is working fine in chrome + WIndows 8.1 preview,But it is not working in IE 11.

EDIT

I have added one more line in the question and actually that line is failing since window.open() return null and so is winOpen.focus().I turned to compatibility mode and than launched the page now it is giving me the same WebPage error but I am able to navigate to the page.I wanted it to work in without compatibility mode setting.user might not know the setting.

like image 693
Vikram Ranabhatt Avatar asked Aug 29 '13 06:08

Vikram Ranabhatt


1 Answers

uncheck "Enable Protected Mode" in internet options

like image 131
Khodor Avatar answered Oct 31 '22 04:10

Khodor