javascript return window.location.href 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);