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:
document.title = 'Example title';
Practical example
In this example, we use document.title
property to change the web page's title dynamically.
<!doctype html>
<html>
<body>
<script>
document.title = 'Example title';
</script>
</body>
</html>
Result: