cthulhu/test/html/clickable.html

17 lines
474 B
HTML
Raw Permalink Normal View History

<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>