Why isn't my button working?
Why isn't my button working. I first tried to make it go to another file in another folder, but that didn't work. I then tried to just have a basic link to youtube.com, and that didn't work either. What am I doing wrong and how do I fix it?
- You linked your script wrong (
- Your functions should be lowercase
Corrected code form index.html
<!DOCTYPE html> <html> <head> <title>My Website</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <header> <h1>My Website</h1> </header> <button id="btn-yeet" onclick="BrokenStuff()">Broken Rock Paper Scissors</button> <script src="script.js"></script> </body> </html>