PDA

View Full Version : Closing the Browser


leeym
02-11-2004, 01:30 PM
Is there a JavaScript or HTML command that can be embedded into an image to close a browser?

If so, please advice how. Thanks

_underdog
02-11-2004, 01:43 PM
I think window.close() is the javascript command to close a window.

php_brian
02-11-2004, 06:32 PM
What do you mean embedded into an image? If you mean a window that pops up with a image to fill it and when you click on the image it closes the windows, yes that can be done.

... (#)

Isn't this being posted in the wrong topic?

skidooer
02-11-2004, 08:36 PM
Why would you want to close my browser? More importantly, why would I want you to close it for me?

php_brian
02-12-2004, 01:18 AM
When a browser window opens another window using that would be handy. But in most cases if you run that code on a main browser window it will prompt you asking you if you want this webpage to close the window.

kryptech.net
02-21-2004, 03:31 PM
I dont think thats possible, I've read a few places that you cannot close the main browser window, if it was a opened window by JS then the window.close, I tried messing around with document.close(); or something but couldnt find anything...