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 4 of 4
  1. #1
    New Coder
    Join Date
    Nov 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    launching a new window

    i want to launch a new window in a specific size by clicking on a link. i can get it to work in firefox but not in internet explorer. can anyone see if there is a problem with the code?

    Code:
    <html>
    
    <head>
    
    <script language="javascript">
    
    function newwin() {
    
    window.open('final.html','calculator','width=100,height=100');
    
    
    
    }
    
    </script>
    
    </head>
    
    <body>
    
    <a href="#" onClick="newwin()">new win</a>
    
    
    </body>
    
    </html>
    Last edited by supacook2k; 12-06-2006 at 02:41 PM.

  • #2
    Regular Coder
    Join Date
    Oct 2003
    Location
    on a ship
    Posts
    574
    Thanks
    1
    Thanked 6 Times in 5 Posts
    it works fine for me.....

    what version of IE are you running it through?
    I make no attempt at pretending like I'm a professional. I offer help with what knowledge I do have.

  • #3
    New Coder
    Join Date
    Nov 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    IE7 , it think it might be something to do with activex controls.

  • #4
    Regular Coder
    Join Date
    Oct 2003
    Location
    on a ship
    Posts
    574
    Thanks
    1
    Thanked 6 Times in 5 Posts
    check to make sure you have the newest release of IE7 first off. then make sure if you have a pop-up blocker, that it is disabled.

    nothing from that script should trigger the browser to block it (as far as activex goes).
    I make no attempt at pretending like I'm a professional. I offer help with what knowledge I do have.


  •  

    Posting Permissions

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