Menu
I know this event is a bit… strange, but I’m having problems with it. I know that onbeforeunload=”return ‘message'” will confirm if the user wants to change the page, however is there a way that I can choose whether or no to show the message during runtime, for instance:
onbeforeunload=”if(confirmleave==1){return ‘message’}”
like that…?