View Full Version : custom prompt in google groups: how do they doit?

07-03-2011, 01:52 AM
if you start composing a new message in google groups http://groups.google.com/ and then click the back button a window appear that looks like a javascript confirm popup, however instead of the "OK" "Cancel" buttons, the buttons show a custom wording "Leave this page" "Stay on this page".

Anyone knows how do they do that in javascript?