mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
24 lines
487 B
HTML
24 lines
487 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').hasAttribute('rel'));
|
|
}
|
|
|
|
function bb()
|
|
{
|
|
window.alert(document.getElementById('ble').hasAttribute('href'));
|
|
}
|
|
</script>
|
|
<button onclick="return aa()">blabla rel true</button>
|
|
<button onclick="return bb()">ble href false</button>
|
|
</body>
|
|
</html>
|