Prevent Form Field Autocomplete
Preventing autocompletion of form fields is incredibly important since we never know where our users are completing them from. They could complete them from a super secure computer or an incredibly public computer. Regardless of security level, some field values should never be remembered, like credit card number, social security number, etc. Preventing autocompletion is as simple as adding one attribute to a FORM tag for individual form fields.
The HTML
The autocomplete attribute is the key. This attribute may be added FORM tags to prevent any autocompletion:
<form method="post" autocomplete="off">
You may also isolate single fields for preventing autocompletion:
<input type="text" name="credit_card" autocomplete="off" />
Big detail, simple task, simple solution.
![Camera and Video Control with HTML5]()
Client-side APIs on mobile and desktop devices are quickly providing the same APIs. Of course our mobile devices got access to some of these APIs first, but those APIs are slowly making their way to the desktop. One of those APIs is the getUserMedia API...
![7 Essential JavaScript Functions]()
I remember the early days of JavaScript where you needed a simple function for just about everything because the browser vendors implemented features differently, and not just edge features, basic features, like addEventListener
and attachEvent
. Times have changed but there are still a few functions each developer should...
![Unicode CSS Classes]()
CSS class name structure and consistency is really important; some developers camelcase classnames, others use dashes, and others use underscores. One thing I've learned when toying around by HTML and CSS class names is that you can actually use unicode symbols and icons as classnames.
![Create a Simple Slideshow Using MooTools, Part IV: Thumbnails and Captions]()
Slow day for blog posts? :P
Casual Friday?
its a bad idea to make users type out their email id, name etc on every website. There’s a reason why autocomplete was invented.
As I stated, there are credit card numbers, social security numbers, passwords, etc. Those shouldn’t be remembered.
Passwords should be remembered IF users want to them of be remembered.
There is a bug about that in Chromium:
https://code.google.com/p/chromium/issues/detail?id=177290
Until it’s fixed, there is an add-on for this:
By using the feature, websites force me to use this add-on, which could decrease my security.
Sorry, the add-on is: https://chrome.google.com/webstore/detail/autocomplete-on/ecpgkdflcnofdbbkiggklcfmgbnbabhh