to title method in javascript code example Example: javascript change title // Changing the website's <title> document.title = "Test";