cthulhu/test/html/clickable.html

17 lines
468 B
HTML

<html>
<head><title>Clickable</title></head>
<script language="JavaScript">
<!--
function myMessage(msg) {
alert(msg);
}
//-->
</script>
<body>
<p>Clickable image: <img src="orca-for-tests.jpg" alt="Orca 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>