B
boss
Hi ,
I am trying to open the same session in new window by closing
the parent window.
For that I am using the following javascript code:
var newWin = window.open("URL");
newWin.focus();
window.opener='x';window.close();
which is invoking the pop-up blocker blocker. After temporarily
allowing the pop-up and clicking OK in the information alert box, I am
getting an javascript runtime error.
The error reports newWin is null or not an object.
if I remove the newWin.focus() the newWindow also getting closed.
Please suggest me a solution
I am trying to open the same session in new window by closing
the parent window.
For that I am using the following javascript code:
var newWin = window.open("URL");
newWin.focus();
window.opener='x';window.close();
which is invoking the pop-up blocker blocker. After temporarily
allowing the pop-up and clicking OK in the information alert box, I am
getting an javascript runtime error.
The error reports newWin is null or not an object.
if I remove the newWin.focus() the newWindow also getting closed.
Please suggest me a solution