Answers for "change title in js"

9

javascript change page title

document.title = "My New Page Title"; //change/set page title in JavaScript
Posted by: Guest on August-02-2019
1

change page title js

document.title="New Title";
Posted by: Guest on January-10-2021
1

javascript title string

function toTitles(s){ return s.replace(/\w\S*/g, function(t) { return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase(); }); }
var str = toTitles('abraham lincoln'); // Abraham Lincoln
Posted by: Guest on May-25-2020
0

javascript change title

// Changing the website's <title>
document.title = "Test";
Posted by: Guest on April-14-2021
0

change the title in html using

document.title = "My New Page Title";
Posted by: Guest on September-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language