• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Writing Data to the Page

One of JavaScript's most useful features is the ability to write text and tags to a page on- the-fly. For example, your script could detect a particular browser name and version, and then write text and tags that are best suited for that browser. Similarly, you could use the current values of variables or form fields to open a new window and write text to it instead of displaying an existing HTML file.

However, I should point out early on that JavaScript's basic methods for writing data can't be used to create dynamic pages that change based on user input or some other condition. Instead, these methods are safely used in only three situations:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint