There is no need to make all your text red. A browser engine ( also known as a layout engine or rendering engine) is a core software component of every major web browser. What code should I use to display the contents of a plain-text .txt file in JavaScript? information for an individual file such as its name, size, mimetype, and a reference to the file handle. In this article I will explain with an example, how to read and display contents of HTML file using C# and VB.Net. The HTML Markup consists of a FileUpload control (HTML File Input) and a HTML Button. Method 4: Read text file into a string array using stream reader class. Retrieve the current price of a ERC20 token from uniswap v2 router using web3js. HTML5 allows developers to access the file contents and details using JavaScript and jQuery and hence in browsers that support HTML5 one can easily read the file contents. Adding the "multiple" attribute to the file input . Hope it helps. I want the text to scroll on screen in the active window. Read Reading a File and Getting its Binary Data in Javascript for more details.