tags:

views:

1368

answers:

3

Can I somehow disable spell-checking on HTML textfields (as seen in e.g. Safari)?

+3  A: 

Javascript cannot override user settings, so unless you use another mechanism other than textfields, this is not (or shouldn't be) possible.

Note that my original answer above is 18 months old, and it is now possible by setting spellcheck='false'

Eric Wendelin
why has this been accepted? it does not make sense because it can override the users settings if the browser allows it. see ms2ger's answer.
usr
Just because it was the best answer at the time. I'm guessing Michiel hasn't gone back through and marked the other one as correct. That would be fine with me since it is a better answer.
Eric Wendelin
+1  A: 

Use a rich-text WYSIWYG editor. Most of the time, they use iFrames and other non-textarea elements that won't trigger the browser's spell checker.

Try looking at TinyMCE as an example.

Stephen
+12  A: 

Yes, use spellcheck=false, as defined by HTML5.

Ms2ger