js|jscript| Example <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title>pubs</title>
<style>
Table {
Border:2 Groove Blue;
Position:absolute;
top:100;
left:300;
}
TD {
Border:1 Ridge Green;
}
</style>
<script language= "JavaScript" >
var path= "c:\\";
var fname= "Everyone.txt"
window.status= "bulletin boards";
function Getfname () {
if (Txt1.value!= "" && txt1.value!= "") {
Fname=txt1.value;
}
}
function SaveFile () {
var fso,file;
if (Tbox1.value = = "") {
Alert ("Please enter the information you want to post, then store!");
Return
}else{
Getfname ();
Fso=new ActiveXObject ("Scripting.FileSystemObject");
FILE = fso. CreateTextFile (path + fname,true);
File. WriteLine (Tbox1.value);
File.close ();
Alert ("Complete!");
}
}
function ReadFile () {
var fso,str,file;
Getfname ();
FSO = new ActiveXObject ("Scripting.FileSystemObject");
str = "No message for You";
if (FSO). FileExists (path + fname)) {
File=fso. OpenTextFile (path + fname,1);
Str=file.readall ();
File.close ();
}
Tbox1.value = str;
}
</script>
<body>
<table width= "437" height= "157" border= "0" align= "center" cellpadding= "0" cellspacing= "0" >
<tr>
<TD width= "433" height= ">e-mail":
<input type= "text" id= "Txt1" >
<button name= "Save" > Storage </button>
<button name= "read" > Reading </button>
</td>
</tr>
<tr>
<TD height= "><div" align= "center" > Announcement Content </div></td>
</tr>
<tr>
<td><textarea name= "Tbox1" rows= "cols=" ></textarea></td>
</tr>
</table>
</body>