Window.close()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • programmerboy
    New Member
    • Jul 2007
    • 84

    Window.close()

    Hi,
    I am trying to close the window through JS but IE always ask me for confirmation. Is their a way to do it without IE asking the user for confirmation.
    Thanks
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    no ... you cannot close the main browser-window silently through javascript ... and you shouldn't :) ... since the user opened it and he should know when it will be closed. you may close all windows that are opened by your script ... :) but not the main-window ...

    kind regards

    Comment

    Working...