Pop up window

Discussion in 'JavaScript' started by hover1, Jan 15, 2010.

  1. #1
    I made this pop up code using dreamweaver but when i insert it in my index.php it doesnt work. What am i doing wrong-

    <script type="text/JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>

    <body onload="MM_openBrWindow('http://website.com/filename.html','Bonus','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=500')">
    </body>
     
    hover1, Jan 15, 2010 IP
  2. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Is the popup being blocked by your browser?
     
    camjohnson95, Jan 15, 2010 IP
  3. hover1

    hover1 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No it's not being blocked....i want to insert the code in a my index file written in php. Do i have to echo it or something. How does that work?
     
    hover1, Jan 16, 2010 IP