2024-10-16 17:06:34 -04:00
|
|
|
<html>
|
|
|
|
<head><title>Clickable</title></head>
|
|
|
|
<script language="JavaScript">
|
|
|
|
<!--
|
|
|
|
function myMessage(msg) {
|
|
|
|
alert(msg);
|
|
|
|
}
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
<body>
|
2024-10-17 09:20:24 -04:00
|
|
|
<p>Clickable image: <img src="cthulhu-for-tests.jpg" alt="Orca Logo" onClick="myMessage('image clicked');">More text.</p>
|
2024-10-16 17:06:34 -04:00
|
|
|
<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>
|
|
|
|
|