In article < >,
enlightened us with...
> Hello,
>
> I have a form that lets the user click a submit button 'Delete'. It
> deletes a record in a mySql databsae. I'd rarther have a JavaScript
> alert asking the user 'Are you sure you want to do this?' before
> submitting the form and deleting the record.
>
I myself use a confirmation page. My pet users like to ignore alerts and
just click okay without reading them.
But, if you wish...
<form name="f1" action="whatever.asp" method="post" onSubmit="return
confirm('Are you sure you want to delete this? Don't be a moron and
click okay and then whine at me later that you deleted it by
accident.');">
--
--
~kaeli~
He often broke into song because he couldn't find the key.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace