Force mouse click on popup window

Discussion in 'JavaScript' started by hEmA, Jul 15, 2011.

  1. #1
    I have a simple project but i'm newbie in javascript,
    what I need is to force mouse to click on popup window [Leave Page]
    leavepage.png

    how to do that?:confused:
     
    hEmA, Jul 15, 2011 IP
  2. spletnisistemi

    spletnisistemi Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can't not do that. Only user can do this, this is disabled due to security reasones. Why would you like to do that?
     
    spletnisistemi, Jul 15, 2011 IP
  3. - MinimalBook -

    - MinimalBook - Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It is impossible. If you do not want the user to have any other option than Leave Page, remove the confirmation dialog.
     
    - MinimalBook -, Jul 15, 2011 IP