HTML and JavaScript Issue
Ok, this is my first post and I need help. I am trying to change picture using onclick function. But cannot get the picture to change. What am I doing wrong? <!DOCTYPE html> <html> <title>HTML and JavaScript</title> <body> <h1>First Try At JavaScript</h1> <img id="Images" src="Images/logo1.jpg" width="250" height="250"> <p>Click the button to change the picture.</p> <button onclick="myFunction()">Try Me</button> <script> function myFunction() document.getElementById("Images").src = "Images/logo2.jpg"; document.getElementById("Images").src = "Images/helmet1.jpg"; document.getElementById("Images").src = "Images/helmet2.jpg"; document.getElementById("Images").src = "Images/watt1.jpg"; document.getElementById("Images").src = "Images/watt2.jpg"; </script> <p>Go Steelers!</p> </body> </html>