Jump to content

Div focus and onBlur


aeroswat

Recommended Posts

Let's say I set focus to a div and I want to make it so if I click anywhere outside of the div I want the div to hide. Would I be able to do this by setting focus to the div and using the onBlur event property in the div tag? Would this work for everything contained in that div or just the actual div itself?

Link to comment
https://forums.phpfreaks.com/topic/187423-div-focus-and-onblur/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.