Document title Example : document : Javascript Objects : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP


JavaScript DHTML  »  Javascript Objects   » [  document  ]   
 



Document title Example

Please note that some example is only working under IE or Firefox.

    
<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>

    
      
      
Related examples in the same category
1.  'expando' Example
2.  Active Element
3.  Document 'URLUnencoded' Example
4.  'URL' Example
5.  Create a Comment
6.  'write()' Example
7.  'writeln()' Example
8.  Execute Command
9.  Document parentWindow
10.  Document referrer
11.  Document compatMode
12.  Document design Mode
13.  Document doctype
14.  Document Domain
15.  Document Link color
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.