HTML to JavaScript Convertor

The HTML to JavaScript convertor takes your markup and converts it to a series of document.write() statements that you can use in a block of JavaScript.

Output options

When using this tool, it will convert and escape all those troublesome single quote, double quote issues that always throw you curve balls when creating strings in JavaScript. The last option - to build up a string using a variable name - is most likely to be the best use for this tool. But hey, that's your choice. Enjoy.