Document title Example

<html><head><title>properties_title</title><script language="JavaScript">function function1() {document.title = "This is the new title ";}function function2() {var n = document.title; alert(n);}</script></head><body><button onclick="function1();">Click here to change the title of this page</button><button onclick="function2();">Click here to display the title of this page</button></body></html>