34,333
edits
Changes
→Changing the Document Title
=== Changing the Document Title ===
Even when the title of a document has been specified using the HTML ''<title>'' tag it is possible to dynamically change the current setting using the ''title'' property of the document object. The following example intially sets the document title to ''JavaScript Document Object Example'' and provides a button which, when pressed, change sthe changes the title to a new value:
<pre>