LibWeb: Add location.protocol and location.host

This commit is contained in:
Andreas Kling 2020-05-18 21:59:16 +02:00
commit 71007f6ebb
Notes: sideshowbarker 2024-07-19 06:29:00 +09:00
3 changed files with 27 additions and 0 deletions

View file

@ -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';