mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +00:00
LibWeb: Add location.protocol and location.host
This commit is contained in:
parent
efdfdbabdb
commit
71007f6ebb
3 changed files with 27 additions and 0 deletions
|
@ -12,6 +12,8 @@
|
|||
<script>
|
||||
var pre = document.querySelectorAll("pre")[0];
|
||||
pre.innerHTML += "href: " + location.href + '\n';
|
||||
pre.innerHTML += "protocol: " + location.protocol + '\n';
|
||||
pre.innerHTML += "host: " + location.host + '\n';
|
||||
pre.innerHTML += "hostname: " + location.hostname + '\n';
|
||||
pre.innerHTML += "pathname: " + location.pathname+ '\n';
|
||||
pre.innerHTML += "hash: " + location.hash + '\n';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue