Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>My Work</title>
- </head>
- <body>
- <img id="nokia" src="phone.jpg" />
- </body>
- </html>
- var phone = document.getElementById("nokia");
- phone.onclick=function(){
- score++;
- output = document.getElementById("score");
- output.innerHTML = score;
- };
- })();
- </script>
- </head>
- <body>
- <img id="nokia" src="phone.jpg" />
- <div id="score"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement