I have a JWPlayer playing video in a page, when people accidentally click a link in that page or the F5 button, the player will stop playing automatically and start to redirect to other page. I use below function to help viewer to make sure this action is not made accidentally, but this could not keep the player continue playing, so is there any solution?
window.onbeforeunload=function(){...};