So am attempting to do a:
$(window).bind( 'beforeunload', function () { $.prompt( 'You have
unsaved data', { buttons: { Cancel: 'cancel', Save: 'save', Ok:
'ok' }, function (response, object) { ..... } } );The funny thing is when you do the prompt it doesn't wait for the response it just keeps heading to the next page. Any ideas how this can be made to stop and wait- like a confirm? thanks dn ps: I posted this in the plug in section but it never got posted as fara as I can tell...

