how to know iframes state ?

C

Carl Anatorian

Look at the HTML code below :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="javascript">
function Button1_onclick() {
var username=document.forms['login'][0];
var password=document.forms['login'][1];

parent.cwps.document.forms[0].elements['user'].value=username.value;
parent.cwps.document.forms[0].elements['pass'].value=password.value;

parent.cwps.document.forms[0].elements['submit'].click();

password.value='';
}
</script>
</head>
<body>
<a href="http://localhost/cwps/index.php" >go to the cwps</a><br>
<FORM action="login.html" name="login">
user anme£º<input type="text" name="username" id="username" /><br>
password£º<input type="password" name="password" id="password" /><br>
<input type="button" value="submit" id="Button1"
language="javascript" onClick="return Button1_onclick()" />
</form>
<iframe src="cwps/index.php" name="cwps" id="cwps">cwps</iframe>
</body>
</html>

When the user click on the button "Button1", the login form in the
iframe will be submitted. Now, how can I know whether the the iframe
login successfully,or not.
 

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

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top