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

21 lines
288 B
HTML
Raw Normal View History

2021-05-12 11:16:10 -04:00
<!DOCTYPE html>
<html>
<body id="test">
2022-08-31 09:04:03 -04:00
<button onclick="myFunction()">Click to see id of body element.</button>
2021-05-12 11:16:10 -04:00
<a href="/">/</a>
<a href="/home">/home</a>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.body.id;
window.alert(x);
2021-05-12 11:16:10 -04:00
}
</script>
</body>
</html>