那得在applet.html上写行代码来取参数

来源: 2005-06-20 07:10:06 [旧帖] [给我悄悄话] 本文已被阅读:

给a标签加个ID:

{a id="oa" href="#" onclick="window.open('applet.html','window','width=640','height=400');" style="color:red"}hello{/a}

然后在applet.html里加上这句javascript:

{script}
document.write(opener.document.getElementById("oa").innerHTML);
{/script}