As a little memo: the interactive link anatomy
—
In short (assuming a location of http://example.org:8888/foo/bar#bang
):
hostname
gives youexample.org
host
gives youexample.org:8888
More Related Contents:
- window.location.href and window.open () methods in JavaScript
- What’s the difference between window.location= and window.location.replace()?
- js window.open then print()
- Disabling enter key for form
- Clear localStorage on tab/browser close but not on refresh
- Could a website force the browser to go into fullscreen mode?
- How to display an chage photo option on mouse hover similar to linkedin using Javascript? [closed]
- How to force browser to show image 3 inches wide?
- HTML Form Submit pass array to PHP [closed]
- How can I select an element by name with jQuery?
- Executing injected by innerHTML after AJAX call
- jQuery disable/enable submit button
- Resize HTML5 canvas to fit window
- How to resolve the C:\fakepath?
- Cache busting via params
- Client Checking file size using HTML5?
- Convert binary data to base64 with javascript
- How do I disable the save password bubble in chrome using Javascript?
- “Status Code:200 OK (from ServiceWorker)” in Chrome Network DevTools?
- How Do I Stop My Web Content From Shifting Left When The Vertical Scrollbar Appears? Roll-Up of Advice 2017 [duplicate]
- How to detect when history.pushState and history.replaceState are used? [duplicate]
- How to prevent html/JavaScript code modification
- Multiple read more / read less sections are not working on a page
- Drawing lines on html page
- Measuring text width/height without rendering
- Sending mail from HTML page with image in the body
- How to get an element’s padding value using JavaScript?
- Connecting to remote SSH server (via Node.js/html5 console)
- Google Apps Script HTML Form
- How to replace the entire html webpage with ajax response?