<body>
The warning dialog & lt;/strong>
<script>
The function getById (id) {
Return the document. The getElementById (id);
}
GetById (' form - login.) addEventListener (' submit ', function (e) {
Var account=getById (" account "). The value, the trim ();
Var password=getById (" password "). The value, the trim ();
if(! The account)
{
Alert (" please enter the account ');
e.preventDefault();
return false;
}
if(! Password)
{
Alert (" please enter the password ');
e.preventDefault();
return false;
}
});
</script>