blob: 901e21542a0524eb793f4837bb55e0db68cf5919 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var obj = new Object();
obj.location = location.toString();
obj.href = location.href;
obj.origin = location.origin;
obj.protocol = location.protocol;
obj.host = location.host;
obj.hostname = location.hostname;
obj.port = location.port;
obj.pathname = location.pathname;
obj.search = location.search;
obj.hash = location.hash;
postMessage(obj);
|