2 function getFrameURL(host
) {
3 var result
= "http://" + host
;
6 result
+= location
.port
;
8 result
+= location
.pathname
;
12 var iframe
= document
.createElement("iframe");
13 iframe
.src
= getFrameURL("app.com");
14 document
.documentElement
.appendChild(iframe
);