
February 6th, 2001, 10:59 PM
|
|
Junior Member
|
|
Join Date: Feb 2001
Posts: 19
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
There is, however some file i/o capbilities with client side VBscript. As far as Javascript, you can read .txt, .html, .js and a few other file types in IE4+ using this method:
1) Create a frame. Pretend its called "textFrame". The source should be the file you wish to read. NOTE: It CANNOT be an <iframe>.
2) You can read the contents of the page from a different frame like so:
var string = parent.textFrame.document.body.innerHTML;
alert(string);
*As far as I know, that is the extent of any kind of file handling with JavaScript.
|