Skip to content

How to Display Confirm box when clicking a Link?

We always use Confirm Box while Deleting Data, Confirm Box is vary useful to confirm use Actions on the web, fortunately we can fire Confirm Box with minimal Script, just add onClick() attribute and little javaScript. Look at the Example

 <a onclick="return confirm('Are you Sure you want to do this Action!');" href="something.html">Some Link</a>
0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments