Document title Example : document : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » document »

 

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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Javascript Objects
» document