page loading message appears when going back to the previous page
<p>The following works fine, except when I click the back button on the browser (to go back to my previous start page), the loading... message appear again. What should I do to get rid of it?<br>
Many thanks in advance.</p>

<pre><code>$("#form").submit(function(){
  $("#loading").show();
});
&lt;div id="loading"&gt;loading...&lt;/div&gt;
</code></pre>
