How to show confirm message before delete using jquery

JavaScript
<button onclick="return confirm('Are you sure you want to Delete?');" 
id="btnDelete">DELETE</button>
Source

Also in JavaScript: