|
-
show / hide div
Hello everybody!!!
Help please!!!
How to make that div hide when i click somewhere else (onblur)
I already have code that works perfect for show/hide div!!!
----------here is code--------
Click <a onmouseover='this.style.cursor="pointer" ' onfocus='this.blur();'
onclick="document.getElementById('PopUp').style.display = 'block' " >
here</a>
<div id='PopUp' style='display:none;position:absolute;left:50px;top:50px;border:solid black 1px;padding:10px;background-color:rgb(255,255,225);
text-align:justify;font-size:12px;width:135px;'>
Some content of div
<br />
<div style='text-align: right;'>
<a onmouseover='this.style.cursor="pointer" '
style='font-size: 12px;'
onfocus='this.blur();'
onclick="document.getElementById('PopUp').style.display = 'none' " >
<span style="text-decoration: underline;">close</span></a>
</div>
</div>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks