Web Analytics Made Easy -
StatCounter Suppressing a JS alert box - CodingForum

Announcement

Collapse
No announcement yet.

Suppressing a JS alert box

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Suppressing a JS alert box

    For security reasons, I want to close a browser window when the button is clicked ( using the "window.close();" statement ). problem is I always get an alert/promt box saying:

    "The web page you are viewing is trying to close the window. Do you want to close the window? Y/N".

    Does anyone know how to suppress this box so it doesn't show.
    If I can work this out I'll have a killer login script to post for everyone.

    Thanks in advance, JimiGrunge(.com)

  • #2
    http://www.codingforum.net/ubb/Forum1/HTML/024104.html

    Another interesting thing tho, *.hta files can be closed without user intervention. Can't be used on webpages, but are excuted off a pc like an exe, but are really only htm files with a renamed extention.

    Comment


    • #3
      Did you ever figure out the answer to this?

      Comment

      Working...
      X