Web Analytics Made Easy -
StatCounter Popup close Mystery - CodingForum

Announcement

Collapse
No announcement yet.

Popup close Mystery

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Popup close Mystery

    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>

  • #2
    You just need to add parenthesis after your close.

    playPop.close();

    Comment


    • #3
      Ah, right, thanks!

      Comment

      Working...
      X