temp.vbs中为如下内容
sub openNewFile
parent.frames(1).location="aaa.htm"
parent.frames(2).location="bbb.htm"
end sub
HTML中主要为如下内容:
<script language=vbscript src="temp.vbs"></script>
<body>
<a href="#" id="myLink" language=vbscript onclick="openNewFile()">MyLink</a>
</body>
vbs中如果要更通用的话可改为
sub openNewFile(url1,url2)
parent.frames(1).location=url1
parent.frames(2).location=url2
end sub
HTML中主要为如下内容:
<script language=vbscript src="temp.vbs"></script>
<body>
<a href="#" id="myLink" language=vbscript onclick="openNewFile 'aaa.htm','bbb.htm'">MyLink</a>
</body>