SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Document.write not working in IE?

  1. #1
    SitePoint Zealot
    Join Date
    Sep 2005
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Document.write not working in IE?

    I've noticed that I can't get Document.Write to work in IE7 although it works in Firefox.

    It's an HTML 4.01 Strict doc.
    I've got standalone IE's on my machine, which I know may not work properly and wonder if this might cause it somehow?

    Otherwise no idea....anyone any thoughts?

    I don't really want to use Document.Write anyway, btw, it's just an experiment!

  2. #2
    Community Advisor silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    1,641
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    In both places you referenced the command it is Sentence Case.
    That is VB syntax but Javascript is lowercase.
    Try 'document.write', which is the standard. Perhaps this is one place IE is closer to the standard and less forgiving !!!

  3. #3
    SitePoint Zealot
    Join Date
    Sep 2005
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ParkinT View Post
    In both places you referenced the command it is Sentence Case.
    That is VB syntax but Javascript is lowercase.
    Try 'document.write', which is the standard. Perhaps this is one place IE is closer to the standard and less forgiving !!!
    Cheers. Actually that was my mistake, I hadn't written that in the code. However it seems the problem was with my security settings, which annoyingly seem to keep resetting themselves! in this case disabling scripting!

Bookmarks

Posting Permissions

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