![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Webteacher Software now offers
Writing to a documentYou can create an HTML document 'on the fly' with JavaScript using the document.write() method. Normally, you must open a new document first. Then you may write to that document, and finally you must close the document so that the Browser can stop tryi ng to load it. Here is an example:
When I create a new window, I am also opening a new document. So I can write to a new window with this series of commands.
The document.write() method can contain either text or a variable inside the perentheses. The following example creates a variable, then writes the variable to a new document.
I can even include HTML tags in the document.write() statement. Like this:
| ||||||
![]() |
![]() Home | WebData - Web Database Software | Javascript | CGI | Consulting | Map Builder | Contact Us | The Press Room ![]() |