...

View Full Version : window.open in ie7



Duffman12
06-12-2008, 02:44 PM
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?


<!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>

barkermn01
06-12-2008, 02:52 PM
this is working for me on IE7
opens a pop up with address about:none

and says POP!!

Duffman12
06-12-2008, 03:02 PM
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!

barkermn01
06-12-2008, 04:44 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum