I’d like to know how to input a .html file to a browser, which then takes the contents of said .html file and converts it into one big string so that I can pass it into a JavaScript function to parse it. As I understand it, HTML5 implemented a file API but I’m not entirely sure if it’s capable of doing what I want, or how to really use it for all that matter.
Share
You can use the following :