title: Show custom message and button text for javascript confirm dialog?
body: <p>Is it possible to give custom message for buttons instead of Cancel/Ok and give my own text?</p>
  
  <p>I saw lots of tutorials on replacing js confirm with jquery dialog. But isn't there a way with using native JS? I see the same thing done in Grooveshark and many other pages; when user wants to navigate away from their page user is prompted with a js dialog box with custom buttons like 'Stay on page/Leave page'?</p>
  
  <p>Any idea how they might be implementing this? Their dialog box appears as if generated using native JS! </p>