Using iframes in java.

G

Gareth

Hi Everyone

Can anyone tell me why loaded.htm doesn't load in iframe lmenu


<html>
<head>
<title>Gareth Homemade pulse site</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="JavaScript">
<!--

function login(password) {
if (password == "1") {
alert("You have entered the correct password! Click ok to access the
secure section");
document.frames('parent.frames[\'lmenu\']','\loaded.htm');
}
else {
alert("You have entered an invalid password!");
}
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" rightmargin="0"
topmargin="0"scroll="no">
<table width="785" border="0" cellpadding="0" height="320"
cellspacing="0" bgcolor="#003399" align="center"
bordercolor="#FFFFFF">
<tr>
<td bgcolor="#FFFFFF" >
<table width="100%" border="5" cellspacing="0" cellpadding="0"
bgcolor="" bordercolor="#333333" align="center">
<tr >
<td bordercolor="#333333" height="42" bgcolor="#FFFFFF">
<div align="center"><font size="+3">You have entered IT
Secure Site.<br>This Site is for IT Personnel Only </font></div>
<form name="form1" method="post" action="">
<div align="center">Please enter your password:
<input type="text" name="textfield">
<input type="submit" name="Submit" value="Submit"
onClick="login(textfield.value)"></div></form>

</td>
</tr>
<tr >
<td bordercolor="#333333">
<table width="1000" border="0" cellspacing="0"
cellpadding="0" bgcolor="#FFFFFF" align="center"
bordercolor="#FFFFFF">
<tr bordercolor="#000000" bgcolor="#000000">
<td bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<div align="center"></div>
</td>
</tr>
</table>
<iframe name="lmenu" width="30%" height="540"
frameborder="0" src="Blank.htm"><iframe name="main"
width="70%"height="540" frameborder="0" src="blank.htm"></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<br>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top