SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2001
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    document.write('...') Doesn't work

    I have a script which uses a document.write('...') to write an entire page to the window. However, when I open the .js file for debugging, it gives me an error:

    "document" undefined

    How do I fix this?

  2. #2
    The Legend Indian's Avatar
    Join Date
    Nov 2001
    Location
    Gods' Own Country
    Posts
    890
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It happens on Windows.
    Rightclick the .js file and click Openwith.....
    and select notepad or any other text editor.
    Click OK

    Or you can add your text editor to "sendto"
    Create a shortcut to text editor and place it on C:\WINDOWS\SendTo
    Then you can edit any file by
    rightclick menu > sendto > shortcut



    Indian


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
  •