Javascript help

Discussion in 'Software' started by Computer Acolyte, May 15, 2007.

  1. Computer Acolyte

    Computer Acolyte Private First Class

    Why is this not working under IE?

    Code:
    <script type="text/javascript" language="JavaScript">
    
    function PopUp(url) {
    window.open(url,"popup", 'scrollbars, width=750, height=500');
    }
    
    </script>
    
    
    <a href="javascript:PopUp('popup.html')">click here</a>
     
  2. Mada_Milty

    Mada_Milty MajorGeek

    What version of IE??
    Works fine for me in IE7.

    The only thing that held me up is not having access to popup.html... is this file in the same directory as this page???

    The only other thing I could think of is your security settings.
    IE7 blocks javascript by default... I had to allow execution of your script... maybe you've got javascript disabled???
     
  3. Computer Acolyte

    Computer Acolyte Private First Class

  4. Mada_Milty

    Mada_Milty MajorGeek

    From this link:

    Does it work if we change your tag to

    Code:
    <a href='javascript:PopUp("popup.html")'>click here</a>
    ???
     
  5. Computer Acolyte

    Computer Acolyte Private First Class

    Nope it still doesn't work.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds