Search code examples
javascriptdom-eventsrefreshpageloadkeyboard-hook

Bypass refresh behavior of Firefox


How do you capture refresh button or event of Firefox browser using Javascript and imitate the behavior of IE when refreshing forms? Firefox refills the forms which destroys my ajax UI.


Solution

  • <form name="form1" id="form1" method="post" autocomplete="off" action="http://www.example.com">
    </form>
    

    https://developer.mozilla.org/en/How_to_Turn_Off_Form_Autocompletion