Tried the second one and it wouldnt work but then noticed what seemed to be an error. The script was
var agree=confirm("ARE YOU SURE ?");
return true ;
return false ;
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?