Description This sample shows how text can be replaced dynamically by user-defined content, through the innerHTML property. The author need not know in advance what the user will type; Dynamic HTML lets users freely choose how to update this element on the fly.

Browser/Platform Compatibility
This Dynamic HTML sample is supported in Microsoft Internet Explorer 4 and greater.

Complete Article

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.