[JavaScript HTML DOM]使用document物件,使用屬性document.title
說明:
document.title
更換title標題
此範例設計說明:
第一步、更換title
程式:
<html>
<head>
<title>[JavaScript-HTML_DOM]使用document物件,使用屬性document.title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function mytest() {
document.title = "test title"
}
</script>
</head>
<body>
[JavaScript-HTML_DOM]使用document物件,使用屬性document.title<br>
<input type="button" value="測試" onclick="mytest()"/>
</body>
</html>
圖:
按下測試,更換title
相關範例:
- 首頁
- JAVA 目錄
- JAVA WEB 目錄
- JAVA 其他未分類 目錄
- Grails目錄
- jQuery 目錄
- Apache 目錄
- JavaScript 目錄
- Spring + Hibernate 目錄
- Hibernate 目錄
- Linux 目錄
- 程式開發工具目錄
- MySQL 目錄
- PHP目錄
- C/C++ 目錄
- Google App Engine 目錄
- HTML5/CSS3
- 程式開發基本資訊
- Android
- Oracle 目錄
- Struts 目錄