Tried the second one and it wouldnt work but then noticed what seemed to be an error. The script was
<script LANGUAGE="JavaScript">
<!--
function confirmPost()
{
var agree=confirm("ARE YOU SURE ?");
if (agree)
return true ;
else
return false ;
}
// -->
</script>
and the input line was
<input type="submit" name="Submit" value="delete" onClick="return confirmSubmit()">
So I changed onClick="return confirmSubmit()" to onClick="return confirmPost()" and it worked. Should I have changed the input to match the script or vice versa or doesn't it matter.
Not tried it yet but does the first method in my earlier post work without a script?