Give it a try window.location.href. Read this: window.location - MDC
Run this in the console to make sure.
function showLoc()
{
var x = window.location;
var t = ['Property - Typeof - Value',
'window.location - ' + (typeof x) + ' - ' + x ];
for (var prop in x){
t.push(prop + ' - ' + (typeof x[prop]) + ' - ' + (x[prop] || 'n/a'));
}
alert(t.join('\n'));
}
showLoc();
: , , , :) . , , :)