Back button sets checkboxes

 I got a surprise when I pressed the back button and my page set the checkboxes to their previous values.


I could turn this off by saying 'autocomplete="off"' on the checkboxes. Instead, when the page loads, I look at the 'checked' values and run the relevant actions. 


Firefox also 'autofills' the checkboxes when I refresh the page.


There is a discussion of this at:


  'developer.mozilla.org/en-US/docs/Web/Security/

     Securing_your_site/Turning_off_form_autocompletion'


This is also discussed on 'stackoverflow.com'.


There are more tips at: bbingo.xyz/t

Comments

Popular posts from this blog

webkit-tap-highlight-color in CSS

Steve Jobs quotes