EN
JavaScript - dynamically change web page title
3 points
In this article, we would like to show you how to dynamically change web page title using JavaScript.
Quick solution:
xxxxxxxxxx
1
document.title = 'Example title';
In this example, we use document.title
property to change the web page's title dynamically.
xxxxxxxxxx
1
2
<html>
3
<body>
4
<script>
5
6
document.title = 'Example title';
7
8
</script>
9
</body>
10
</html>
Result:
