Use the form below to create javascript strings from single lines to blocks of code. Give your string a reference name (don't use spaces or special characters).
Paste your source code/text in the top text area. If you want the code as a function then tick the box. When you are ready click on the Generate Code button, your code will appear in the bottom text area ready to cut and paste.
To display the string use something like
alert(chosen_string_name); or
document.write(chosen_string_name);. How you use the string depends entirely on your needs, so , happy coding :)
This tool is provided free of charge. Use of the generated code requires no obligation on your part to link to this site either by choice or by forcing a visible link to appear in the generated code.
No link to this site will appear on any pages that use code generated from this site. However, the generated code does produce a comment specifying the url of the code generator ( it is hidden and will never appear to your visitor ). You are free to remove the line but we would appreciate it if you left it in place. Thanks :)