in Search
     
Latest post 07-22-2008 9:00 PM by cvega. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-10-2008 12:42 AM

    • JehPopoy
    • Top 150 Contributor
    • Joined on 02-25-2008
    • Posts 8
    • Points 215

    Window.onblur problem in firefox

     hi guys,

        I am currently involved in a online assessment project. The system as of now does not allow its users to change windows as soon as the assessment window us loaded. Changing windows was detected through the window.onblur event, problem is that on firefox, onblur  doesn't fire when current focus is on an input tag with type text. I have tried so many workaround but none of them perfectly works.

    Hope somebody could help me. I am stuck for two days with this bug Sad 

    • Post Points: 20
  • 07-22-2008 9:00 PM In reply to

    • cvega
    • Top 10 Contributor
    • Joined on 11-25-2005
    • Posts 497
    • Points 8,455

    Re: Window.onblur problem in firefox

    Try using addEventListener:

    if(document.all){
        document.getElementById("myframe").attachEvent("onblur",dothis);
    }else{
        document.getElementById("myframe").contentDocument.addEventListener("blur", onBlurHandler, false);
    }

    function onBlurHandler() {
      // handle onBlur in Firefox
    }

    Chris Vega This posting is provided "AS IS" with no warranties, and confers no rights My Weblog|Visit MSDN Community
    • Post Points: 5
Page 1 of 1 (2 items)