Change title of a webpage in javascript
<head>
<title>Original Title</title>
</head>
<body>
<form id="frm">
<div>
<input type="button" onclick="javascript:document.title='My New title';" value="Change title" />
</div>
</form>
</body>
</html>
Tag: document.title, dynamic title in html, title
Comments
Post a Comment