0

I need Change window title bar after 3 seconds delay

like this using javascript www.nazeer.com

3 Answers3

1

You can change the title using document.title = "value"

You can delay 3 seconds(3 * 1000 milliseconds) and then change using setTimeout function.

setTimeout(function(){
    document.title = "NEW TITLE"
}, 3000);

Here, 3000 is the time in milliseconds.

Refer this more queries - How to dynamically change a web page's title?

Tethys0
  • 896
  • 1
  • 7
  • 14
0

The following example is given Try This

setTimeout(()=>{
window.document.title = "Your OWn";
console.log("changing Title");

},3000);
0
setTimeout( () => { window.document.title = 'Your title'}, 3000)

You can use setTimeout for delay, and window.document.title to change title/ Hope i help :)

Dima Vak
  • 579
  • 4
  • 17