javascript window open location code example
Example 1: javascript open new window with html content
var newWin = open('url','windowName','height=300,width=300');
newWin.document.write('html to write...');
Example 2: window location javascript
console.log ('url actual: '+window.location.href);
console.log ('url actual: '+location.href);