AlfieWebDevTips Homefor new and experienced developers
[Home Home] [Web Development Web Development ] [Code Generators Code Generators ] [Resources Resources ] [Forums Forum ] [Contact Us Contact ] |WebDevTips Privacy Privacy |

WebDevTips Pick Of The Day : ".$todaytip[$today]." |

"; ?>
Print This Page



 


You are here : Home - Code Generators - HTML 2 JS

HTML 2 JS



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 :)

String Name :



Tick box to create the code as a function
  




Your code will appear below

Got any comments? Why not share them in our forum?

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 :)






Google
 

[back to top of page]   

[labelled with icra -  - this link will open in a new window] [RSS Content]

[Copyright © WebDevTips]