I am quite new to both HTML5 and Javascript. I want to set an editable string in Javascript which will hold HTML5 code so it can be edited from Javascipt interface. Then I want to take this string to another HTML5 page and show it as a preview. So that the string edited in Javascript interface will be seen as a result right next to it in a small HTML5 preview screen.
How to refer to the string in JS script from HTML5 and use it as if it is a part of HTML5 code?
Hope I could explain myself. Thanks in advance.