PDA

View Full Version : Close Window....


P@trī¢k
03-03-2002, 12:08 AM
When I put the command:
var close= close("ThePageIWant")
,this can close the windows but this ask me if I want to...I want to know if there is a way to close it without any question or alert message...

montroze
03-03-2002, 02:19 AM
I think its only if JavaScript created the window.

punkpie_uk
03-04-2002, 12:09 PM
have you tried window.close() or document.close()?

I think window.close() gets around it.

Dr. Web
03-04-2002, 12:21 PM
You will always be asked to confirm a window.close() call if javascript did not open the window. This is a security precaution and cannot be avoided unless you open the window using javascript.