diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-18 21:59:16 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-18 21:59:16 +0200 |
commit | 71007f6ebbfe181472d82cd003698189974c6df2 (patch) | |
tree | b023e1c62da4734ffbc32979ffc409c927490fb3 /Base | |
parent | efdfdbabdbef1354424d0d9aafac232ee2dc17a0 (diff) | |
download | serenity-71007f6ebbfe181472d82cd003698189974c6df2.zip |
LibWeb: Add location.protocol and location.host
Diffstat (limited to 'Base')
-rw-r--r-- | Base/home/anon/www/location.html | 2 |
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'; |