1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/test/ecmascript/clickListener2.html

22 lines
412 B
HTML
Raw Normal View History

<html>
<head>
<script>
function cli()
{
alert("document.location.href='http://www.elinks.cz';");
}
function loader()
{
2022-11-11 13:20:24 -05:00
document.getElementById('c').addEventListener('click', function() { alert('aaaa'); });
document.getElementById('c').addEventListener('click', cli);
}
</script>
</head>
<body onload="loader()">
<center>
<button id="c" value="ELinks homepage">AAA</button>
</center>
</body>
</html>