Over-riding JavaScript Confirm Box. on onbeforeUnload

Discussion in 'JavaScript' started by vic_msn, Nov 28, 2008.

  1. #1
    After searching for a long time I was able to find a method to
    override the confirm box contents using jqModal.
    This works when we invoke a confirmation
    using the onclick ,href or other such events.

    I need to know how to over-ride the confirmation box that
    pops when we use the onbeforeunload event using this jqmodal.

    I need to replace the confirmation box that pops when using the
    onbeforeunload event with the new confirm box from jqmodal

    Please Help.
     
    vic_msn, Nov 28, 2008 IP
  2. bigvito19

    bigvito19 Member

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    I'm trying to stop the box from popping up
     
    bigvito19, Feb 11, 2012 IP
  3. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #3

    look for the function the button executes the onclick event.. maybe you can find what you need.

    if your just modifying the look, you can just do that by css
     
    JohnnySchultz, Feb 13, 2012 IP
  4. bigvito19

    bigvito19 Member

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Is there and html or codes that you know that would help?
     
    bigvito19, Feb 13, 2012 IP