js window location to different place 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);