Answers for "js dom get website name"

0

js dom get website name

// Let's suppose you have this url path:
// http://localhost:4200/landing?query=1#2

window.location.hash: "#2"

window.location.host: "localhost:4200"

window.location.hostname: "localhost"

window.location.href: "http://localhost:4200/landing?query=1#2"

window.location.origin: "http://localhost:4200"

window.location.pathname: "/landing"

window.location.port: "4200"

window.location.protocol: "http:"

window.location.search: "?query=1"
Posted by: Guest on March-03-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language