Connecting Tech Pros Worldwide Help | Site Map

Newbie Q: document.write() doesn't work in IE 7

Newbie
 
Join Date: Mar 2008
Posts: 3
#1: Mar 3 '08
Hello,

This example from W3schools does not work with my IE 7.0 (just reinstalled it on an XP SP2 system with all default options, no addons and popup blocker off). I get the new open window but it's blank - no output from the document.write command, which is the main problem I have with my code too.

The example below works fine with my latest Firefox and Opera browsers:

W3Schools example of opening a popup window

If this works on your IE 7 then there's something wrong with mine. However, many other examples with the document.write command that I tried from W3Schools work as expected in IE, so what could be the problem with this simple one?
Member
 
Join Date: Dec 2006
Location: United States
Posts: 43
#2: Mar 4 '08

re: Newbie Q: document.write() doesn't work in IE 7


This worked fine in IE 7.0 for me. I don't know of any possible reason why it isn't working unless you have a popup blocker that doesn't tell you it was blocked or you have javascript turned off.
Newbie
 
Join Date: Mar 2008
Posts: 3
#3: Mar 4 '08

re: Newbie Q: document.write() doesn't work in IE 7


Quote:

Originally Posted by johnhjohn

This worked fine in IE 7.0 for me. I don't know of any possible reason why it isn't working unless you have a popup blocker that doesn't tell you it was blocked or you have javascript turned off.

Thank you for the reply. I've been over all the IE options a number of times and can't find any that affect the outcome of this example. I'll try again.
Newbie
 
Join Date: Mar 2008
Posts: 3
#4: Mar 4 '08

re: Newbie Q: document.write() doesn't work in IE 7


Phew!

How obscure can this get?

In case someone else has the same problem (document.write does not write on IE popups) here's what worked for me:

Solution to the problem from XP Annoyances

It may or may not have to do something with Visual Studio (I have the Express version installed on the system) and some corrupted dll registration. The above solved the problem right away (commands run with IE closed of course) - no reboot either.
Reply