How to disable/override "Do you want to leave this site?" alert?
<p>I've a form in a pop-up, which is loaded by AJAX call. It is built using <code>form_for</code> tag of RoR. Even if I don't modify any field in it and try to navigate to another page, following alert is shown by chrome.</p>

<p><a href="https://i.stack.imgur.com/xqFxd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xqFxd.png" alt="enter image description here"></a></p>

<p>I want to <strong>disable</strong> this alert box. Is it possible? If yes, how?</p>

<p>I've already tried <a href="https://stackoverflow.com/questions/7317273/warn-user-before-leaving-web-page-with-unsaved-changes">this</a>, but it is not valid anymore.</p>

<p>Following are the environment settings,</p>

<pre><code>Ruby version = 1.9.3
Rails version = 3.1.4
Chrome version = 52
jQuery version = 1.10.2
</code></pre>