1
Fork 0
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:
Andreas Kling 2020-05-18 21:59:16 +02:00
parent efdfdbabdb
commit 71007f6ebb
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';