document.editor.temp.value = m.join(nl) You can try with Microsoft.Office.Interop.Word; I wrote Mammoth for .NET, which is a library that converts docx files to HTML, and is available on NuGet. cv1 = secondLastC.join(nl) 'Include script tags '+nl+ Most web editors have the ability to convert Word documents to HTML. $ vertopal convert HTML_INPUT_FILE . //alert('width = '+dbcw+'\nheight = '+dbch+'\ntop = '+toppos +'\nleft = '+leftpos ) opener=self; tPos = screen.height / 2 ; return null; document.editor.temp.value = m.join('\\"') Take the hard work out of coding HTML to Javascript. } 20142023 Softo ltd. All rights reserved. '+nl+' "' function getHelp(){ txt.select(); ' timerRunning = true;'+nl+ Where should I put