javascript location object
// Prints complete URL
window.location.href
// Prints protocol like http: or https:
window.location.protocol
// Prints hostname with port like localhost or localhost:3000
window.location.host
// Prints hostname like localhost or www.example.com
window.location.hostname
// Prints port number like 3000
window.location.port
// Prints pathname like /products/search.php
window.location.pathname
// Prints query string like ?q=ipad
window.location.search
// Prints fragment identifier like #featured
window.location.hash
Also in JavaScript:
- django ajax without jquery
- textcontent in javascript
- react native flatlist margin bottom
- connect react native app to local api macos
- loop in object javascript
- feathersjs quicstart
- .empty() in jquery
- cnpj pattern js
- js var
- javascript sort object by key
- play sound with keydown javascript
- use node js to check if a json file exists
- universal apollo kit
- get only last 2 digit of year in javascript
- redirect to homepage javascript
- js for each item in array
- jquery w3schools
- discord js check if person banned
- Multi-Line JavaScript
- bytes to string js
- react native bordered image drop with shadow fix
- How to get row index and cellindex together in javascript
- remove a user from a reaction discord.js
- how to download express without view