Thread
:
Show a hidden div by clicking anywhere on the page
View Single Post
07-03-2009, 04:45 PM
PM User
|
#
2
ckeyrouz
Senior Coder
Join Date: Jun 2009
Location: Montreal, Canada
Posts: 1,044
Thanks: 5
Thanked 179 Times in 179 Posts
Add the onblur event of the div itself:
<div id="mydiv" onblur='unhide("mydiv")'><a href="javascript
:unhide('mydiv2');">Click here to show content</a>
</div>
ckeyrouz
View Public Profile
Find More Posts by ckeyrouz