Java J2ee Tutorials

javascript code to alert before delete a record

Monday, December 10, 2012

Write the javascript file js/delete.js containing the utility methods

view source
rint?
01function go(url)
02{
03 window.location = url;
04}
05 
06function delete(url)
07{
08 var isOK = confirm("Are you sure to delete?");
09 if(isOK)
10 {
11  go(url);
12 }
13}

Free Career Predictions