Write the javascript file js/delete.js containing the utility methods
01 | function go(url) |
02 | { |
03 | window.location = url; |
04 | } |
05 |
06 | function delete(url) |
07 | { |
08 | var isOK = confirm( "Are you sure to delete?" ); |
09 | if (isOK) |
10 | { |
11 | go(url); |
12 | } |
13 | } |