Why doesn't this work in IE

Discussion in 'PHP' started by oo7ml, Feb 19, 2008.

  1. #1
    Hi, the following code is a close button that i have placed on my php page:
    
    echo "<center><input type='button' value='Close' onClick='javascript:window.close();' /></center>";
    PHP:
    The button works fine in FF but when i click on it in IE it does not do anything

    Does anyone know why? Thanks in advance
     
    oo7ml, Feb 19, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    <center> tags are deprecated.

    And remove the javascript:


    And... it's not a PHP question.
     
    nico_swd, Feb 19, 2008 IP