|
Create an HTML page using JavaScript
Well, I am making a simple online text editor. The user will write their HTML codes in a text-area, after that, they will click on a button preview the HTML codes in a html page. My questions are:
1/ How to make JavaScript preview everything in the textarea, I mean the HTML codes in a new Window in an HTML page? Well, I know how open a page in new window, but I mean, how preview the HTML codes written in an HTML format?
For example, in the text area, I write: <b>This text is bold</b>, when I click on the preview button, it open a new windows showing me: This text is bold
2/ How to save also the preview page in .html format?
|