javascript - page loading message appears when going back to the previous page -


the following works fine, except when click button on browser (to go previous start page), loading... message appear again. should rid of it?
many in advance.

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

try:

$(window).unload(function(){$("#loading").hide();}); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -