This page shows a example of how to change a HTML page's content with JavaScript. Press the following buttons to change the “howdy” paragraph.
Howdy?
Answer
Question
Take a look at the HTML Source, you can see that the essence of how this works is by this line: “document.getElementById("t").firstChild.nodeValue="..."”.
See also:
Page created: 2006-02. © 2006 by Xah Lee.