This is how you do it in Java Script
<script Language="JavaScript"><!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.FirstName.value == "")
{
alert("Please enter a value for the \"First Name\" field.");
theForm.FirstName.focus();
return (false);
}
return (true);
}
//--></script>
<form method="POST" action="InsertGuestBookEntry.asp" onsubmit="return FrontPage_Form1_Validator(this)" name="FrontPage_Form1">
Thanks,
Mo
Edited by - mafifi on 12 July 2001 21:14:25
Edited by - mafifi on 12 July 2001 21:16:27