<!DOCTYPE html>
<title>My Example</title>
<input id="go" type="button" value="Click me" onclick="confirm('Are you sure?');">