Jump to content

Hiding On-screen Pop Up Box


Guest KV5
 Share

Recommended Posts

OK, so I'm at a loss here. I've read most of the tutorials on the website and have not been able to find an answer to this question, so I figured I would ask those who know more than I do. The original code for the "create a pop up" window tutorial is as follows:

<html><head><script type="text/javascript">function show_popup(){var p=window.createPopup();var pbody=p.document.body;pbody.style.backgroundColor="lime";pbody.style.border="solid black 1px";pbody.innerHTML="This is a pop-up! Click outside the pop-up to close.";p.show(150,150,200,50,document.body);}</script></head><body><button onclick="show_popup()">Show pop-up!</button></body></html>

What I am trying to do is to make an "onmouseOut" event that makes the pop-up window disappear when you leave the object. For the life of me, I can't figure this out. Any help would be appreciated!KV5

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...