Spell Checking a Form in JavaScript Made Simple



Tutorial

easy copy and paste installStep 1 - install JavaScriptSpellCheck

Copy the downloaded folder JavaScriptSpellCheck into the root of your website.

 

Step 2 - include the JavaScriptSpellCheck Include file

Include the file include.js from the JavaScriptSpellCheck folder.
You should do so in the head of your web page. E.g.

<script src="/JavascriptSpellCheck/Include.js"></script>


Step 3 - 2 lines of code to spellcheck

To open the spellchecker window:


var oSpell= new JavaScriptSpellCheck();
oSpell.spellCheckWindow('textarea1')
;

It's that simple! This functionality can be integrated into most web pages in minutes.

Note the quote marks around the field name!.

You can swap textarea1 for the id of your field or use a list of multiple fields such as:

oSpell.spellCheckWindow
('field1','field2','field3')

 

< More Demonstrations of the JavaScript Spell Checker