Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-12-2008, 02:44 PM   PM User | #1
Duffman12
Regular Coder

 
Join Date: Oct 2005
Posts: 124
Thanks: 7
Thanked 0 Times in 0 Posts
Duffman12 is an unknown quantity at this point
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>
Duffman12 is offline   Reply With Quote
Old 06-12-2008, 02:52 PM   PM User | #2
barkermn01
Regular Coder

 
Join Date: Nov 2007
Location: Leeds, UK
Posts: 514
Thanks: 24
Thanked 19 Times in 19 Posts
barkermn01 can only hope to improve
this is working for me on IE7
opens a pop up with address about:none

and says POP!!
barkermn01 is offline   Reply With Quote
Old 06-12-2008, 03:02 PM   PM User | #3
Duffman12
Regular Coder

 
Join Date: Oct 2005
Posts: 124
Thanks: 7
Thanked 0 Times in 0 Posts
Duffman12 is an unknown quantity at this point
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!
Duffman12 is offline   Reply With Quote
Old 06-12-2008, 04:44 PM   PM User | #4
barkermn01
Regular Coder

 
Join Date: Nov 2007
Location: Leeds, UK
Posts: 514
Thanks: 24
Thanked 19 Times in 19 Posts
barkermn01 can only hope to improve
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
barkermn01 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:40 AM.


Advertisement
Log in to turn off these ads.