Hi,

On click of a button called "result", I want to read and display a text file (which is present in my local drive location say: C:\\test.txt) using java script function and display the test.txt file contents in a HTML text area.

I am new to java script,can anyone suggest the code for java script function to read and display the contents of .txt file in a HTML text area as in the code section :-
Code:
 <textarea rows="4" cols="50">
        Server Status to be displayed
        </textarea>
?


Thanks and regards
Deb

Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<div id="wrapper">

  <div id="tabContainer">
    <div id="tabs">
      <ul>
        <li id="tabHeader_5">Status</li>
      </ul>
    </div>
    <div id="tabscontent">
      </div>
	   <div class="tabpage" id="tabpage_5">
        <button type="button" onclick="alert('Hello world!')">server</button>
         <textarea rows="4" cols="50">
        Server Status to be displayed
        </textarea>  </div></html>