Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPEhtml>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <title>About Me</title>
- </head>
- <body>
- <h1>About Me</h1>
- <ul id="list">
- <li>Name: <span id="name"></span>
- <li>Index: <span id="index"></span>
- <li>Hometown: <span id="hometown"></span>
- </ul>
- <input type="button" value="Change" onclick="s()">
- </body>
- </html>
- <script>
- function s() {
- document.body.style.fontFamily=('Arial');
- document.getElementById("name").innerHTML="Stefanija Trifunovska";
- document.getElementById("index").innerText="181562";
- document.getElementById("hometown").innerHTML="Skopje";
- document.getElementById("list").style.color="#ff0000";
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement