get location.href javascript code example
Example 1: javascript get domain
window.location.hostname
Example 2: window location javascript
console.log ('url actual: '+window.location.href);
console.log ('url actual: '+location.href);
window.location.hostname
console.log ('url actual: '+window.location.href);
console.log ('url actual: '+location.href);