日期:2014-05-17 浏览次数:20618 次
<script type="text/javascript">
function isNull(){
var email=document.getElementById("email").value;
alert(email);
var Msg=document.getElementById("emailMsg");
if(email=="")
{
Msg.innerHTML("请输入邮箱");
return false;
}
return true;
}
function checkall(){
if(isNull){
return true;
}
else
{
return false;
}
}
</script>
<input name="email" id="email" type="text"/>
<a href="index.jsp" onclick="checkall()">hh</a>
<span id="emailMsg"></span>
function checkall(){
if(isNull){
window.location.href = 'index.jsp';
}
else
{
return false;
}
}
<a href="javascript:checkall();">hh</a>
<script type="text/javascript">
function isNull(){
var email=document.getElementById("email").value;
alert(email);
var Msg=document.getElementById("emailMsg");
if(email=="")
{
Msg.innerHTML("请输入邮箱");
return false;
}
window.location.href = 'index.jsp';
}
</script>
<input name="email" id="email" type="text"/>
<a href="index.jsp" onclick="isNull()">hh</a>
<span id="emailMsg">