inputMask : http://javascriptools.sourceforge.net/samples/sample_mask.html
How to set form action to open new window with certain size?
http://stackoverflow.com/questions/4315942/how-to-set-form-action-to-open-new-window-with-certain-size
<
FORM
ondragstart="return false;"
id="inputForm"
method="post"
target="foo"
onSubmit="window.open('', 'foo', 'width=450,height=300,status=yes,resizable=yes,scrollbars=yes')"
id="accessControlForm"
onsubmit="return validateForm()"
ACTION=<%Response.Write "index.asp?"&Request.QueryString%>
method="post"
>
<script>
function validateForm()
{
var x=document.forms["accessControlForm"]["User"].value;
if (x==null || x=="")
{
alert("Please Input User Name");
return false;
}
var y=document.forms["accessControlForm"]["password"].value;
if (y==null || y=="")
{
alert("Please Input Password");
return false;
}
}
</script>
沒有留言:
張貼留言