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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prnts
    New Member
    • Mar 2008
    • 3

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

    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?
  • johnhjohn
    New Member
    • Dec 2006
    • 43

    #2
    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.

    Comment

    • prnts
      New Member
      • Mar 2008
      • 3

      #3
      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.

      Comment

      • prnts
        New Member
        • Mar 2008
        • 3

        #4
        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.

        Comment

        Working...