August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.title
The title property is a read-only string that specifies the title of the document. This property is commonly set with the <title> tag.
In Listing 7.196, the title of the Web page is written to the screen using the title property.
<html>
<head><title>My Web Page</title></head>
<script>
<!-- Hide
//Output the title of the document
document.write("The title of this page is <i>");
document.write(document.title,"</i>");
//Hide End --->
</script>
</html>
|
Read now
Unlock full access