Skip to content

min-34/Example-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Example-code

This repo shows how to make a webpage title change between different words/messages.

-Full step-by-step guide is in Guide.txt.
-Or just look at the example code below:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Changing Title</title>
  <script>
    const titles = ["Hello", "Welcome", "HI", "Blop!"];
    let index = 0;
    setInterval(() => {
      document.title = titles[index];
      index = (index + 1) % titles.length;
    }, 1000);
  </script>
</head>
</html>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published