Vex Dialog — Confirm Before Navigating

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="https://raw.githubusercontent.com/HubSpot/vex/v4.0.1/dist/js/vex.js"></script>
<script src="https://raw.githubusercontent.com/bbatliner/vex-dialog/master/dist/vex.dialog.js"></script>
<link rel="stylesheet" href="https://raw.githubusercontent.com/HubSpot/vex/v4.0.1/dist/css/vex.css">
<link rel="stylesheet" href="https://raw.githubusercontent.com/HubSpot/vex/v4.0.1/dist/css/vex-theme-default.css">
<button class="button">Открыть модалку</button>

JavaScript

vex.dialog.confirm({
  message: 'Are you sure you want to visit this site?<br>',
  callback: function(confirmed) {}
});