TutorialKart
index.html
►
Run
Reset
<!DOCTYPE html> <html> <body> <p>Click the word: <span id="clickable">Click me</span></p> <script> document.getElementById("clickable").onclick = function() { alert("You clicked the span element!"); }; </script> </body> </html>