[an error occurred while processing this directive]
|
123 Web Design! on-the-fly messages Text inside the document is usually static- if you reload this document 5 times, there's no reason to believe that the document's text will be any different each time...or is there? One of the coolest things about JavaScript is that it allows you to generate text on the fly. You could, for example, have the document greet you "Good morning" in the morning, and "Good night" at night. The basic way to write out text in JavaScript is by using the document.write() command, as follows:<script> <script> 08/07/2001 02:26:24 The above is a perfect example of "on-the-fly" text. The text reflects the last modified date of your page, and is updated automatically whenever you edit the page and save it! |