Use 3: The SpellCheck Function

The spellCheck Function allows you to perform spellchecking in your own Javascript functions and applications.

Its easy to use.

oSpell.spellCheck('ooooops')    // returns false

The result is true if the input is spelled correctly.  If the input is not spelled correctly, the result is an Array of ranked spelling suggestions

Step 1.  Insall javascript Spell Check

This only takes a few minutes, Find out how.

Step 2.  Include the JavaScript SpellCheck file in your web page.

This code is normally included in head section of your webpage.

<script src="/JavascriptSpellCheck/Include.js" type="text/javascript" ></script>

Step 3. Check spelling

<script>
var oSpell = new JavaScriptSpellCheck();
var result= oSpell.spellCheck('my input')  
alert(result);
</script>  

 

If you need to set up the spellchecker such as language settings - please refer to the Advanced Reference