Disable page refresh
<p>I need to prevent users from refreshing a page.</p>

<ol>
<li>I have scripted in such a way that there is no 'forward' or 'backward' movement required.</li>
<li>However, if one refreshes the page, 'everything' starts from the beginning.
<ul>
<li>To save everything before page refresh and restore them after is not ideal.</li>
</ul></li>
<li>In order to prevent page refresh, I could use an <code>alert();</code>, but there are chances that the user might neglect the warning.</li>
<li>Any other choices...???</li>
</ol>
