Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    May 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    document.open and document.writeIn

    Hi i wanted to know if:
    1- i can open an external text/html document with .open by typing - document.open('htmlfiles/mydoc.html')? what does document.open really do?
    2- what about writeIn? i read it inserts a newline character at the end. but i'm not too sure on what that means exactly

    Thanks

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,302
    Thanks
    203
    Thanked 2,562 Times in 2,540 Posts

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    1. Overwrites the current web page to start creating a new one.

    2. Inserts a line feed at the end of the source code that the web browser will treat as a space.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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