javascript title attribute


  Translation results:

英[ˈtaɪtl] 美[ˈtaɪtl]

n.Title;Title;[Sports]Champion;[Film and Television] Subtitles

vt.Add Title; give a title; refer to... as

adj.Title; champion; title

Third person singular: titles Plural: titles Present participle : titling past tense: titled past participle: titled

javascript title attributesyntax

Function: Returns the title of the current document (the text in the HTML title element).

Grammar: document.title

javascript title attributeexample

<html>
<head>
<title>My title</title>
</head>

<body>
该文档的标题是:
<script type="text/javascript">
document.write(document.title)
</script>
</body>

</html>

Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A