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

asp.net-mvcinternet explorerjavascriptwindows-8.1

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.

Best Answer

uncheck "Enable Protected Mode" in internet options

Related Topic