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

9 lines
759 B
HTML
Raw Normal View History

<p><button onclick="javascript:{ window.alert(location.hash); }">Display location.hash.</button></p>
<p><button onclick="javascript:{ window.alert(location.host); }">Display location.host.</button></p>
<p><button onclick="javascript:{ window.alert(location.hostname); }">Display location.hostname.</button></p>
<p><button onclick="javascript:{ window.alert(location.origin); }">Display location.origin.</button></p>
<p><button onclick="javascript:{ window.alert(location.pathname); }">Display location.pathname.</button></p>
<p><button onclick="javascript:{ window.alert(location.port); }">Display location.port.</button></p>
<p><button onclick="javascript:{ window.alert(location.search); }">Display location.search.</button></p>
2021-05-06 10:06:37 -04:00
<a id="test" href="/">a</a>