Initialize SCAYT functionality in <input> element using either imperative or declarative notation as it is shown in the examples below.<input id="container3" type="text" value="This is an exampl of a sentence with two mispelled words.">
<script>
var instance3 = new SCAYT.SCAYT({
container: document.getElementById("container3"),
autoStartup: true,
spellcheckLang: 'en_US',
serviceProtocol: 'https',
serviceHost: 'svc.webspellchecker.net',
servicePort: '443',
servicePath: 'spellcheck31/script/ssrv.cgi',
customerId: 'encrypted-customer-ID'
});
</script>
<script>
window.SCAYT_CONFIG = {
spellcheckLang: 'en_US',
serviceProtocol: 'https',
serviceHost: 'svc.webspellchecker.net',
servicePort: '443',
servicePath: 'spellcheck31/script/ssrv.cgi',
customerId: 'encrypted-customer-ID'
};
</script>
<input id="container3" data-scayt-autocreate="true" type="text" value="This is an exampl of a sentence with two mispelled words.">
SCAYT 3 (Imperative Notation):
SCAYT 3 (Declarative Notation):