我有以下的jsps。在这里,当我点击按钮(块)时,它应该禁用左框架。在这里,当我尝试这样做时,我能够将框架变灰但仍然链接正在工作,我希望完全禁用该框架。
left.html
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body><form name="hi" id="hi"><table>
<tr><td colspan="3">
<a href="View_Queries.jsp" target="tgt">Queries</a><br/></td></tr>
<tr><td colspan="3"><a href="Welcome.jsp" target="tgt" name="home" id="home">home</a></td>
<tr><td colspan="3"><a href="WL_Verif.jsp" target="tgt">MyAlloc</a></td></tr><br/>
<tr><td colspan="3"><a href="On_Hold.jsp" target="tgt">On Hold</a></td></tr>
<tr><td colspan="3"><a href="logout.jsp" target="_parent">logout</a></td></tr>
</tr></table></form>
</body>
</html>
Welcome.jsp中
<%--
Document : Welcome
Created on : Dec 13, 2012, 2:12:27 PM
Author : u0138039
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<script type="text/javascript">
function disabledFrame()
{
parent.Left.document.hi.disabled=true;
}
</script>
</head>
<body>
<h1>Hello World!</h1>
<input type="button" value="block" onclick="disabledFrame()">
</body>
</html>
的index.jsp
<HTML>
<FRAMESET rows="10%, *">
Welcome
<FRAME src="time.jsp" marginheight="25%" marginwidth="75%">
<FRAMESET cols="15%,*">
<FRAME src="Left.html" id="Left" name="Left">
<FRAME src="right.html" name="tgt" > </frameset>
<NOFRAMES>
This displays if frames are not supported.
</NOFRAMES>
</FRAMESET>
</style>
</HTML>
由于