• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 26. Advanced Microsoft Dynamic H... > Changing HTML Documents On-the-Fly

Changing HTML Documents On-the-Fly

The last example shows the use of Dynamic HTML to create dynamic content—HTML elements that are changed within the Web browser on-the-fly. Listing 26.7 is an example of two ways HTML elements can be changed on-the-fly. The digital clock (see Figure 26.11) is an HTML element, but it changes automatically each second to reflect the local time. The paragraph following it, on the other hand, is changed in response to user input—when the user clicks the Change HTML button, the contents of the text box above the button are substituted for the paragraph. As you can see in Figure 26.12, this substitution can also include any HTML elements, as shown with the <MARQUEE> and hypertext link in this example.

Figure 26.11. Real-time clocks appearing in Web pages are common; with Dynamic HTML, however, you can make them appear using only HTML elements.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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