1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00
elinks/test/ecmascript/getAttribute.html
2021-11-10 18:05:35 +01:00

24 lines
490 B
HTML

<html>
<body>
<a href="/home">BBB</a>
<b id="aaaa">bbb</b>
<a id="blabla" href="/" rel="nofollow">
<b>AAA</b><u id="ble">UUU</u>AAAAAAA
</a>
<a id="bb" href="/">BB</a>
<script>
function aa()
{
window.alert(document.getElementById('blabla').getAttribute('rel'));
}
function bb()
{
window.alert(document.getElementById('ble').getAttribute('href'));
}
</script>
<button onclick="return aa()">blabla rel nofollow</button>
<button onclick="return bb()">ble href null</button>
</body>
</html>