How to interrupt page unload from javascript without confirm or return
<p>Problemm is: I have form that has changed data in it and on onbeforeunload event i bind form validation and warning message about unsaved data. Erlier i've used return/confirm function, so user has seen browser modal window with two buttons Ok and Cancel. As this case difficult to test I decided to do over confirm process whithout using those two functions.</p>

<p>How can I interrupt page unload inside onbeforeunload event without using confirm/return functions.</p>
