How to prevent page refresh or default prompt box in chrome : In my Quiz application have 10 questions in a page and all are input controls, i enter required answer ,during the time refresh a page without submitting, the browser gives a below pop up.


Solution:

I want an customize pop up (instead of chrome pop up) to say u need to finsih all the quiz and submit.
or disable the refresh .

How to do  that, is there any better solution.

[![enter image description here][1]][1]


  [1]: https://i.stack.imgur.com/IM3uD.png