Use 1: The Spell Check Window

The spell check window allows us to spellcheck any form field, string or HTML element in JavaScript. It looks and works much like the Spell-Checker feature in MS Word.

The dialog is feature rich - including grammar checking, personal dictionaries , international support and much more. What's more, you can do this is a few quick steps!

Step 1:  Install 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 should normally included in the head section of your web page.

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

Step 3: Call the spell check window

<script type="text/javascript">
var oSpell = new JavaScriptSpellCheck();
oSpell.spellCheckWindow('textarea1')
</script>

To spellcheck a Form Field or HTML Element:

oSpell.spellCheckWindow('textarea1')

//or

oSpell.spellCheckWindow('document.getElementById("textarea1")')



To spellcheck Multiple Elements:

oSpell.spellCheckWindow('textarea1','textarea2')

To spellcheck a variable:

var strMyString='Any string or Variable'
oSpell.spellCheckWindow(strMyString)

To spellcheck an Iframe:

oSpell.spellCheckWindow('iframe1.document.body.innerHTML')  // Where iframe1 is the id of the iFrame

Advanced Settings:

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