Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

javascript question....

  • 26-09-2008 02:30PM
    #1
    Registered Users, Registered Users 2 Posts: 1,305 ✭✭✭


    Hey,

    I'm opening IE in kiosk mode(no menu's, address bar etc.)... The user has the content and a close window link. When the close link is clicked it closes the window but not before an alert telling me that javascript is trying to close the window. My question is, can this alert be suppressed some how? its bugging the hell out of me and google hasn't helped much!

    If anyone has any answers/suggestions i would appreciate it

    Cheers


Comments

  • Moderators, Science, Health & Environment Moderators Posts: 9,280 Mod ✭✭✭✭mewso


    This guy seems to have a solution - http://www.guyfromchennai.com/?p=18 - I think it's there for security reasons though. That solution tells the window it was opened by itself but you could achieve similar results by opening the window in script from a parent page so it will close in script without this message.


  • Registered Users, Registered Users 2 Posts: 21,287 ✭✭✭✭Eoin


    As Musician said, it's probably being opened from a hyperlink in a new window or directly, rather than from JavaScript.

    If you use window.open() you should be able to close the window through script without the prompt.


Advertisement
Advertisement