• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

does <div> have any onBlur method ?

 
mark I thomas
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when an element is selected, a hidden <div> appears and it contains some warning text. I want that when user moves mouse away from the <div> area or clicks any other area (not inside <div>), the <div> area should disappear again. But I don't think <div> has onBlur type method. How to do this ?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a <div> cannot gain focus, it can't lose focus. So, no blur event.

Is mouseout perhaps what you seek?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic