2021-05-06 10:06:37 -04:00
|
|
|
<p><button onclick="javascript:{ alert(location.hash); }">Display location.hash.</button></p>
|
2021-05-06 09:53:20 -04:00
|
|
|
<p><button onclick="javascript:{ alert(location.host); }">Display location.host.</button></p>
|
2021-05-06 09:46:39 -04:00
|
|
|
<p><button onclick="javascript:{ alert(location.hostname); }">Display location.hostname.</button></p>
|
2021-05-06 09:40:17 -04:00
|
|
|
<p><button onclick="javascript:{ alert(location.origin); }">Display location.origin.</button></p>
|
2021-05-06 09:31:31 -04:00
|
|
|
<p><button onclick="javascript:{ alert(location.pathname); }">Display location.pathname.</button></p>
|
2021-05-06 09:06:35 -04:00
|
|
|
<p><button onclick="javascript:{ alert(location.port); }">Display location.port.</button></p>
|
2021-05-06 09:17:46 -04:00
|
|
|
<p><button onclick="javascript:{ alert(location.search); }">Display location.search.</button></p>
|
2021-05-06 10:06:37 -04:00
|
|
|
<a id="test" href="/">a</a>
|