I have some HTML as follows:
Select a file : <input type="file"><br><br>
Html Codes : <textarea id="displayHtml"></textarea><br><br>
<div id="displayPage">Display the Html Page here</div>
Now how would I browse an external HTML file from a local hard drive and display the page preview in the div #displayPage
and get the HTML tags of the file into the textarea #displayHtml
? I have no idea how to do this so please help.
My fiddle is here: https://jsfiddle.net/zm6ga2ev/1/