get site url javascript
var currentUrl = window.location.href;document.URL
> "http://example.com/page1.html"
document.location.href
> "http://example.com/page1.html"
document.location.pathname
> "/page1.html"
document.location.origin
> "http://example.com"var currentLocation = window.location;
Also in JavaScript:
- how to make a component reload in angular
- javascript remove property from object
- javascript remove last charter stings
- regular expression start and end with same character javascript
- SyntaxError: Unexpected end of JSON input while parsing near '...version":"2.0.6","devD' cli
- html javascript find data attribute
- how to add script before </body> in magento 2
- javascript pass by reference
- javascript best way to loop through array
- tensorflow all nodes
- regular expression
- how to modify an array
- javascript load image programmatically
- ajax file upload jquery
- input search picture jquery
- how to multiple loop in javascript using for
- merge objects javascript
- react native pm ERR! code EINTEGRITY
- dynamic component angular parameters
- split string javascript
- json serializer skip property
- javascript array push method
- using objects for lookups in javascript
- react native hide scroll indicator