...

View Full Version : Popup close Mystery



gorilla1
07-08-2002, 07:21 PM
I must be missing something obvious. The code below opens the window as intended onmouseover, but fails to close it on mouseout. Can you see why it fails to close?

G

<Script Language="javascript" Type = "text/javascript">

function playIt() {
playPop = {window.open{"toolbar=no,location=0,directories=no,status=no,scrollbars=no,resizeable=no,copyhistory=no,width=200, height=30");
playPop.blur();

}
function reset() {
playPop.close;

}


</Script>


</HEAD>
<BODY bgcolor = "#ffffff" Text = "#ffd766" Link = "#ffff99" Vlink = "#ffcc33">


<table cellpadding=0 border=0>

<tr ><td><a href="#" onmouseover="javascript: playIt()" onmouseout="javascript: reset()"><img src="bgnotes8.gif" width=120 height=66 border=1></a></td></tr>

</table>

tamienne
07-08-2002, 07:46 PM
You just need to add parenthesis after your close.

playPop.close();

gorilla1
07-08-2002, 08:33 PM
Ah, right, thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum