Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

firefox button not enabling

    // fix disabled buttons via JS not enabling on page reload /
    // back navigation.
    
    window.addEventListener('pageshow', PageShowHandler, false);
    window.addEventListener('unload', UnloadHandler, false);

    function PageShowHandler() {
        window.addEventListener('unload', UnloadHandler, false);
    }

    function UnloadHandler() {
        //enable button here
        window.removeEventListener('unload', UnloadHandler, false);
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #firefox #button #enabling
ADD COMMENT
Topic
Name
3+7 =