2014年11月3日 星期一

痞客邦-表單測試

痞客邦-表單測試


 


<script type="text/javascript">// <![CDATA[
function chk()
{
if(document.send.account.value=='')
{
//alert('帳號未填');
//document.send.account.focus();
document.write('帳號未填');
document.location.href="http://tw.yahoo.com";
return false;
}
if(document.send.pass.value=='')
{
//alert('密碼未填');
//document.send.pass.focus();
document.write('密碼未填');
document.location.href="http://www.google.com";
return false;
}
document.location.href="http://jashliao.pixnet.net/blog";
document.write('資料符合規範');
document.location.href="http://jashliao.pixnet.net/blog";
return true;
}
// ]]></script>
<form action="http://jashliao.pixnet.net/blog" method="get" name="send" onsubmit="return chk();"><span style="font-size: 18pt; font-family: 標楷體;">帳號<input type="text" name="account" size="5" /> </span><br /><span style="font-size: 18pt; font-family: 標楷體;"> 密碼<input type="password" name="pass" size="5" /> </span><br /><span style="font-size: 18pt; font-family: 標楷體;"> <input type="submit" name="butsubmit" value="送出" /></span></form>


----------------


 





帳號
密碼

沒有留言:

張貼留言