js set element title code example Example: javascript change title // Changing the website's <title> document.title = "Test";