<!DOCTYPE html> <html> <body onload="init()"> <div contenteditable>blahblahblah</div> <script> function init() { document.querySelector("div").setAttribute("spellcheck", "false"); } </script> </body> </html>