summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-18 21:59:16 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-18 21:59:16 +0200
commit71007f6ebbfe181472d82cd003698189974c6df2 (patch)
treeb023e1c62da4734ffbc32979ffc409c927490fb3 /Base
parentefdfdbabdbef1354424d0d9aafac232ee2dc17a0 (diff)
downloadserenity-71007f6ebbfe181472d82cd003698189974c6df2.zip
LibWeb: Add location.protocol and location.host
Diffstat (limited to 'Base')
-rw-r--r--Base/home/anon/www/location.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/Base/home/anon/www/location.html b/Base/home/anon/www/location.html
index 9405fd93fc..fd04896897 100644
--- a/Base/home/anon/www/location.html
+++ b/Base/home/anon/www/location.html
@@ -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';