<html> <head><title>Clickable</title></head> <script language="JavaScript"> <!-- function myMessage(msg) { alert(msg); } //--> </script> <body> <p>Clickable image: <img src="cthulhu-for-tests.jpg" alt="Cthulhu Logo" onClick="myMessage('image clicked');">More text.</p> <p>Clickable span: <span onClick="myMessage('span clicked');">Click Me.</span> More text.</p> <p>Clickable div: <div onClick="myMessage('div clicked');">Click Me.</div> More text.</p> </body> </html>