Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Location
    Manchester, UK
    Posts
    533
    Thanks
    4
    Thanked 1 Time in 1 Post

    hide div on blur.....help!

    Hey,

    I have an even which is called onblur but it doesnt seem to be working!

    basically i have menus (DIVs) that I want hidden when the page looses focus... so when the menus are showing, if the user clicks on another page or basically the main page looses focus, I need them to be hidden...

    I have the hide event, but it doesnt get called when the page looses focus...

    help!

  • #2
    New to the CF scene
    Join Date
    May 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What did you apply the event to? Afaik it doesn't work with eg Body, I think it was thought for use with form elements and msdn says it works with window, too. So you should do a window.onblur=yourfunction; and it should work.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •