js confirm box

onclick="return confirm('Are you sure ?');

demo

<a href="#" onclick="return confirm('Are you sure ?');">清空內容</a>