OnClientClick you can call the javascript method..
<asp:button id="btl1" onclientclick="LogOut()" xmlns:asp="#unknown" />
<script type="text/javascript">
function logout()
{
return confirm("Are You Sure to logout?");
}
</script>
If this solves your issue kindly up vote and mark this as solution.. Thanks..