Dynamic HTML Example : Rewriting HTML

This demonstrates how, after a page is loaded, major changes can be incorporated within a classed style. The primary use of this feature is to use JavaScript to 'rewrite' a segment ( < div > or < span > ) of a visible page, based on dynamic, or sometimes unknown, input. This input is then rewritten, using innerHTML for Internet Explorer or document.write for Netscape, to seamlessly and immediately modify the page.

Click to Welcome
Click for Crab
Click for Shark

This is text that will change dynamically