Hi all,
This code allows any window to be closed without a prompt, regardless of whether it was opened via script or not.
var pw = window.self;
pw.opener = window.self;
pw.close();
As you can see in thread216-358033, it has sparked some debate - my personal opinion is yes, it can be misused, but so what? the person misusing it would only be shooting themselves in the foot by closing their visitor's window.
feel free to comment!
=========================================================
if (!succeed) try();
-jeff
This code allows any window to be closed without a prompt, regardless of whether it was opened via script or not.
var pw = window.self;
pw.opener = window.self;
pw.close();
As you can see in thread216-358033, it has sparked some debate - my personal opinion is yes, it can be misused, but so what? the person misusing it would only be shooting themselves in the foot by closing their visitor's window.
feel free to comment!
=========================================================
if (!succeed) try();
-jeff