Help modify onbeforeunload function

Help modify onbeforeunload function
0

#1

I want to change the default confirm dialog of onbeforeunload by another dialog ?
thank all!