ecojohnson
Programmer
I'm guessing it's probably obvious, but does anyone see what's wrong with my javascript function? I don't see it.
function Delete()
{
if (confirm ("Are you sure you want to delete the selected record?")
{
if (document.forms[0].List.value=("New");
{
alert("You cannot delete this record"
return false
}
else
{
document.forms[0].hiddenfield.value=("Delete"
document.forms[0].submit();
}
{
return false
}
}
}
function Delete()
{
if (confirm ("Are you sure you want to delete the selected record?")
{
if (document.forms[0].List.value=("New");
{
alert("You cannot delete this record"
return false
}
else
{
document.forms[0].hiddenfield.value=("Delete"
document.forms[0].submit();
}
{
return false
}
}
}