how to use windows.location to identify location javascript code example
Example: window location javascript
console.log ('url actual: '+window.location.href);
console.log ('url actual: '+location.href);
console.log ('url actual: '+window.location.href);
console.log ('url actual: '+location.href);