The Dopefly Tech Blog

<< The Dopefly Tech Blog Main page

Firefox - enable spell checking programmatically

posted under category: General on August 16, 2007 at 8:00 am by MrNate

Just playing around with Firebug and I noticed that my form fields have a "spellcheck" field. Of course Firefox doesn't spell check plain text fields normally, so it's set to false except in text areas. The cool part is that this is just a plain attribute. Feel free to turn it on, like this:

document.getElementById("myTextInputField").spellcheck = true;

Then start typing in that text input field and Firefox will spell check it as you type.

Too old to comment!
On Aug 19, 2007 at 7:00 PM Richard Davies (http://www.richarddavies.us) said:
Wow, this is very cool. I wonder if there's some Firefox setting to enable this automatically for all text fields?

On Aug 19, 2007 at 7:00 PM Richard Davies (http://www.richarddavies.us) said:
A quick google search answered my own question...
http://notpopular.com/blogs/josh/2007/07/17/firefox-spell-check-any-field/
Too old to comment!