Javascript Confirm Delete in One PHP File (on href)
You can set the onclick attribute of the link. If the function returns false, the link will not proceed.
Here, the confirm() function will return true if the user pressed OK, and false if the user pressed Cancel. |
Comments
Post a Comment