I tried to do this with no luck, so I decided to ask SO.
I have a page with many different buttons, and each button has its own options.
I want to create a .txt file as a log, and then every time someone clicks on one of the buttons, it writes to the log with the parameters and the button that was clicked. Each button has its own function, so I assume that I just create a function and then add it at the beginning of each function using the parameters of the function.
So I will need to create a txt file using onLoad (), I think, and then create a function to write to the .txt file every time the button is clicked.
I tried:
function WriteToFile(passForm) {
set fso = CreateObject("Scripting.FileSystemObject");
set s = fso.CreateTextFile("logs\log1.txt", True);
s.writeline("HI");
s.writeline("Bye");
s.writeline("-----------------------------");
s.Close();
}
, " " set fso.
, ?
UPDATE
, , , . , .