完全相同的一段HTML代码在HTML文件中可执行通过,但放在JSP中却执行失败!不知是什么缘故,故向各位大侠求教,代码如下:
------------------------------
<%@ page contentType="text/html; charset=GBK"%>
<html>
<head>
<title>htm</title>
</head>
<body onload="RP2.Click()">
<object id="RP1" classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Minimize"></object>
<object id="RP2" classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Maximize"></object>
<input type=button value=最小化 onclick=RP1.Click()>
<input type=button value=最大化 onclick=RP2.Click()>
<tr>
<td class="td-align-center"><span class="abc-logon-note"></span></td>
<td class="abc-logon-text">
<span class="span">1,点击最小化按钮以使窗口最小化。</span><br/>
<span class="span">2,点击最大化按钮以使窗口最大化。</span><br/>
<span class="span">2,刷新页面可使窗口自动最大化。</span><br/>
</td>
</tr>
</table>
</body>