When I use window.open(www.google.com, _blank);
window.open(www.google.com, _blank);
A new tab is opened, but the url isn't www.google.com, it's =url-i-was-at=/www.google.com.
This is a snippet of the code (and the only relevant code).
http://jsfiddle.net/FUYTY/
In jsfiddle it behaves a bit differently, but still doesn't work as it should.
What am i doing wrong?