Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Home page</title>
- <script language="javascript">
- function startActions()
- {
- thisOne();
- setTimeout(thatOne, 3000);
- }
- function thisOne()
- {
- document.getElementById("quote").innerHTML = "Whoa!";
- }
- function thatOne()
- {
- thisQuote = document.getElementById("quote2");
- thisQuote.style.backgroundColor = "#82b1ff";
- alert("double whoa!");
- }
- </script>
- </head>
- <body bgcolor = "#89ffcc">
- <h1>Home page</h1>
- <p id = "quote">"An inspirational quote to blow your mind."</p>
- <p id = "quote2">"Another inspirational quote from Mr Parmar!"</p>
- <button onclick = "startActions();">Click me</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement