Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

JS - window.location built-in property

0 votes
added Mar 17 in Javascript by lcjr First Warrant Officer (8,030 points)
window.location.pathname // /cat/sub-cat

// For reference:     // (including port if there's any)
window.location.hostname //
window.location.hash     // #top
window.location.href     //
window.location.port     // (empty string)
window.location.protocol // http:   // ?filter=a 


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.