再次请教一个javascript的问题

来源: 2005-09-13 10:14:03 [旧帖] [给我悄悄话] 本文已被阅读:

我想用javaScript接受别的网页传过来的data到str,再把这个str作为parameter传给这个网页里的applet,下面是我的程序
→)

(html)
(body)
表示数据(br)
(script language="JavaScript")(!--
str = location.search;
str = str.substring(1,str.length);
document.write(str);
// --)(/script)
(applet code='SimpleApplet' name='app' width='500' height='500')
document.write("(param name='word' value=str)");

(/body)
(/html)
执行后,可以正常打出str的值,但是applet却接受不到str的值,请问这是怎莫回事呢?
,是不是写法有问题?
谢谢