[thelist] Javascript:self.close() w/out Warning

shawn allen shawn at alterior.net
Wed Jan 29 17:01:01 CST 2003


quoth Rob Smith:
> Is there a way to close the browser window with Javascript that
> doesn't prompt the user?

It's totally UA-dependant. Most browsers only allow it if the
window.close() is triggered via a user action (such as clicking on a
button or link). It's pretty nasty to close a user's window without
their approval, dontcha think? :)

--
shawn allen
  mailto://shawn@alterior.net
  phone://415.577.3961
  http://alterior.net
  aim://shawnpallen




More information about the thelist mailing list