oya1.htm --> branch.htm を リモート用としてオープンする
openされた branch.htm から元のwindowを操作する
ソース1.内容(oya1.htm)
<HTML><head><SCRIPT Language=JavaScript><!--
function makeRemote() {
remote = window.open("","remotewin","scrollbars=yes,resizable=yes,width=330,height=400");
remote.location.href = "branch.htm";
if(remote.opener == null) remote.opener = window;
remote.opener.name = "root";
}
// -->
</script></head><body bgcolor=white>
<P><a href="javascript:makeRemote()">(branch.htm)子 width=330,height=400 をRemoteで 開く</a></P>
ソース2.内容(branch.htm)
<html><head><title>子供の窓(リモート用)</title>
<SCRIPT Language=JavaScript><!--
function open(url) {
opener.location.href = url;
}
// -->
</script></head>
<body bgcolor="#ffffff" link="#0000ff" vlink="#aa0000">
<P>Opened メニュー(この窓から親の窓を操作する)
<P>1.<a href="javascript:open('oya1.htm')">▼oya1.htmを開く</a>
<P>2.<a href="javascript:open('oya2.htm')">▼oya2.htmを開く</a>
</body></html> |