|
-
Mar 9th, 2004, 12:08 PM
#1
Thread Starter
Fanatic Member
Add a msgbox if condition is true
When the user clicks the submit button, I run a function that validates the fields. The page will not submit unless the conditions are met. I want to know how to add a msg box if all the conditions are met....
<form id=Frm name=Frm method="POST" action="Page2.asp" onsubmit="Valid()">
<script language="Javascript">
function Valid()
{
if (Frm.txtName.value == "")
{
alert("Enter Name!");
Frm.txtName.focus();
event.returnValue = false
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|