Many time while deleting a record we give one warning message or a simple window message asking the user to confirm once again the deleting process. Here the user can change his mind and can cancel the operation or confirm his action by clicking the submit button.
Here is the PHP code where records are displayed with a delete link. User can delete any record by clicking the delete link. Here some PHP code is shown as an example. Same way ASP or other script code can be used.
msg= "Are you sure you want to delete the data ? " + ttt + " - ID= "+id;
return true ;
return false ;
<a onclick=\"return confirmSubmit('$noticia[title]','$noticia[id]')\"
Number of User Comments : 1
|Window Object : Property, Method and Applications|
|Thanks, this works nicely and probably saved me a bunch of time.|