aeroswat Posted January 6, 2010 Share Posted January 6, 2010 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? Quote Link to comment Share on other sites More sharing options...
Tazerenix Posted January 7, 2010 Share Posted January 7, 2010 what you could do is in the div, make an onblur event that calls to a javascript function that hides div of certain id (getElementById()) and then set the style.display to be none Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.