Hi,
i have a html page with 3 frames(Index.html), and the preview is as in the screenshot. Here in Welcome.html i have a button named block. when i click this button i want left.html to be disabled(the frame in left side), i'm able to do it., but the form elements(the links) are still enabled. anyone please help me on how to disable even them. the code I've written is as below.
Index.html
<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>
Left.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.html
<%@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>
Thanks