I have this
*********************************************************
<Form Action =" method="post" name="form1">
<textarea name="notetext" rows=2 cols=30 ></textarea>
<BR>
<INPUT TYPE="submit" value="Save" onclick="editit();" >
<input type="hidden" name="EMPNO" value="variable1">
<input type="hidden" name="ID" value="variable2">
</center>
</form>
function editit(){
if (this)
{
alert("something"
}
else
{
process text
}
}
****************************************************
What I want to do is if this condition calls for the alert I don't want the form to process. I just want it to stop after user selects ok on the alert popup. I was thinking return false, but that doesn't work.
Any ideas would be appreciated!
Thanks in advance,
Scott
*********************************************************
<Form Action =" method="post" name="form1">
<textarea name="notetext" rows=2 cols=30 ></textarea>
<BR>
<INPUT TYPE="submit" value="Save" onclick="editit();" >
<input type="hidden" name="EMPNO" value="variable1">
<input type="hidden" name="ID" value="variable2">
</center>
</form>
function editit(){
if (this)
{
alert("something"
}
else
{
process text
}
}
****************************************************
What I want to do is if this condition calls for the alert I don't want the form to process. I just want it to stop after user selects ok on the alert popup. I was thinking return false, but that doesn't work.
Any ideas would be appreciated!
Thanks in advance,
Scott