Jump to content

Hiding On-screen Pop Up Box


Guest KV5

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

Archived

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

×
×
  • Create New...