Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 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
    Regular Coder
    Join Date
    Jun 2002
    Location
    Delaware, USA
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You just need to add parenthesis after your close.

    playPop.close();

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ah, right, thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •