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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JS works in Firefox, but not in IE

    Hello
    I have a small popup script that works fine in Firefox, but not at all in IE
    The code is:
    function popout2(dest)
    {
    window.open(dest,'Document Viewer','toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=no,width=800,height =600,left=220,top=181');
    And is called by:
    <a href="javascript:popout2('http://xxx.xxx.xxx.xxx/msac/workorders/tbl_workorders.php?units=<?php echo $row1['unid']; ?>')">
    I've tried messing with the single/double quotes and semi colons but no luck.
    Anyone see anything i'm not?
    Thanks,

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Yes. Names cannot have spaces in them.
    Code:
    function popout2(dest)
    {
    window.open(dest,'Document_Viewer','toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=no,width=800,height =600,left=220,top=181');
    }
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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