blob: 7bb2cec81ca2de7146c61c8d7c91dfd871ba867f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<script>
function getFrameURL(host) {
var result = "http://" + host;
if (location.port) {
result += ":";
result += location.port;
}
result += location.pathname;
return result;
}
var iframe = document.createElement("iframe");
iframe.src = getFrameURL("nonapp.com");
document.documentElement.appendChild(iframe);
</script>
|