Javascript: onblur

Discussion in 'JavaScript' started by Panjabi, Jan 1, 2008.

  1. #1
    Is it possible to use onblur with a timer, so that when user minimizes or switches the page, the timer stops/pauses?
     
    Panjabi, Jan 1, 2008 IP
  2. temp2

    temp2 Well-Known Member

    Messages:
    1,231
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    2
    #2
    possible, but onblur only work on IE

    Remarks

    The onblur event fires on the original object before the onfocus or onclick event fires on the object that is receiving focus. Where applicable, the onblur event fires after the onchange event.

    Use the focus events to determine when to prepare an object to receive or validate input from the user.

    As of Microsoft Internet Explorer 5, you must set the tabIndex attribute of elements that expose the onblur event.

    For Internet Explorer 5 and later, the onblur event is asynchronous.

    .RemarksThe onblur event fires on the original object before the onfocus or onclick event fires on the object that is receiving focus. Where applicable, the onblur event fires after the onchange event.



    wysiwyg { background-attachment: scroll; background-repeat: repeat; background-position: 0% 0%; background-color: #f5fff5; background-image: none; color: #000000; font-family: Verdana, Arial, Arial; foUse the focus events to determine when to prepare an object to receive or validate input from the user.



    nt-style: normal; font-variant: normal; font-weight: 400; font-size: 10pt; line-height: normal } p { margin: 0px; }As of Microsoft Internet Explorer 5, you must set the tabIndex attribute of elements that expose the onblur event.


    䈄ٷؐǀ؈鮈ȩ
    ⣀ɝFor Internet Explorer 5 and later, the onblur event is asynchronous.
    ǒԈ☀柪羘ȯ罈ȯ缴ȯ

    ŗԈ썜柯
    ճﻨɜ�ɶűԈ敗Ɽ〠′慊〲㠰〠㨴㤵㈺‱䵇T
    
    ᘨʳ ĸԈ鷰柮顠ɽﮘڮ⪼ܴ
    atepost&p=5887720
    
    ʎŻԈ占柨
     
    temp2, Jan 1, 2008 IP
  3. Panjabi

    Panjabi Peon

    Messages:
    362
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Im using FireFox and have seen onblur statements work for me.
     
    Panjabi, Jan 1, 2008 IP
  4. temp2

    temp2 Well-Known Member

    Messages:
    1,231
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    2
    #4
    really? your version and your DOCTYPE? I'm using Firefox/2.0.0.11 but it's no working
     
    temp2, Jan 2, 2008 IP
  5. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Whats your code? The blur event is pretty well supported, afaik.
     
    MMJ, Jan 2, 2008 IP