have you ever faced situation where you need to get the confirmation from user before execute the function. This is alert type which get the response from the user. It may be called on OnCLick or OnCLientClick.
Usually situation comes in the Gridview, Datalist or Datagrid where before deleting an record, Developer need to confirm before deleting.
example:
<a href="" href=""
onClick="Javascript: return confirm('Are you sure to delete this record.') "
id="MyID" runat="Server">Delete</a>