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
    Regular Coder
    Join Date
    Oct 2005
    Posts
    124
    Thanks
    7
    Thanked 0 Times in 0 Posts

    window.open in ie7

    see http://lax4mike.myftp.org:2580/test/windowopen.htm

    I have this code that should open a new browser window, and dynamically add some content. it works fine in firefox and ie6, but it's not working in ie7. any ideas?

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    	"http://www.w3.org/TR/html4/strict.dtd">
    
    <html>
    
    <head>
    	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
    	<title>windowopen</title>
    	
    	<script type="text/javascript" charset="utf-8">
    		function openPopup(){
    			popup = window.open();
    			popup.document.write("POP!!");
    			popup.document.close();
    		}
    	</script>
    </head>
    
    <body>
    	
    	<a href="javascript:openPopup();">open new window</a>
    	
    	
    </body>
    </html>

  • #2
    Regular Coder
    Join Date
    Nov 2007
    Location
    Leeds, UK
    Posts
    514
    Thanks
    24
    Thanked 19 Times in 19 Posts
    this is working for me on IE7
    opens a pop up with address about:none

    and says POP!!

  • #3
    Regular Coder
    Join Date
    Oct 2005
    Posts
    124
    Thanks
    7
    Thanked 0 Times in 0 Posts
    hmm, weird.

    I bet it's because i have a standalone version of ie7 so I can run it side by side with ie6.

    thanks for testing it out though!

  • #4
    Regular Coder
    Join Date
    Nov 2007
    Location
    Leeds, UK
    Posts
    514
    Thanks
    24
    Thanked 19 Times in 19 Posts
    Quote Originally Posted by Duffman12 View Post
    hmm, weird.

    I bet it's because i have a standalone version of ie7 so I can run it side by side with ie6.

    thanks for testing it out though!
    ok no probs


  •  

    Posting Permissions

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