Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

spellcheck property

Specifies whether spell checking is applied to an editable text field.

This property is read/write.

Internet Explorer 10



object.spellcheck = ptr
ptr = object.spellcheck


Property values

Type: boolean

True turns on spell checking for an element, false turns it off.


Spellcheck is only enabled by default textArea elements, and elements with the contentEditable = true attribute for Windows apps using JavaScript, Internet Explorer 10, and Internet Explorer 10 for the desktop in Windows 8. Spellcheck is off by default for input type=text

Spellcheck is off by default of any element in the apps that host the web browser control (Web OC). You can enable spellchecking by adding the spellcheck=true attribute to the root or ancestor markup of the content (including the <html> element), with no other special flags needed.

There is also a default state (missing attribute) which uses the element's default behavior, such as inheriting from the parent element's spellcheck state.


The following example shows a text input element with spell checking.

    <title>Spellcheck example</title>
  <!-- Ask for some text -->
  <label>Type some words: 
  <input type="text" autofocus spellcheck="true" />

See also

input type=email
input type=number
input type=range
input type=search
input type=tel
input type=text
input type=url



© 2017 Microsoft