iframe创建智能表单
urn;
} var url = "iframe_formvalidator.php?username=" + userValue; frames["hiddenFrame"].location = url; } function checkUsername_callBack(data, userValue) { if (data == "available") { alert("The username " + userValue + " is available!"); } else { alert("We’re sorry, but " + userValue + " is not available."); } } function checkEmail() { var emailValue = document.getElementById("email").value; if (emailValue == "") { alert("Please enter an email address to check!"); return; } var url = "iframe_formvalidator.php?email=" + emailValue; frames["hiddenFrame"].location = url; } function checkEmail_callBack(data, emailValue) { if (data == "available") { alert("The email " + emailValue + " is currently not in use!"); } else { alert("We’re sorry, but " + emailValue+ " is in use by another user."); } } </script> </head> <body> <form> <table> <tr> <td class="fieldname"> Username: </td> <td> <input type="text" id="username" /> </td> <td> <a href="javascript: checkUsername()">Check Availability</a> </td> </tr> <tr> <td class="fieldname"> Email: </td> <td> <input type="text" id="email" /> </td> <td> <a href="javascript: checkEmail()">Check Availability</a> </td> </tr> <tr> <td class="fieldname"> Password: </td> <td> <input type="text" id="password" /> </td> <td /> </tr> <tr> <td class="fieldname"> Verify Password: </td> <td> <input type="text" id="password2" /> </td> <td /> </tr> <tr> <td colspan=" |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |