View Full Version : can you compile a file

08-01-2002, 06:20 PM
if you go to http://members.aol.com/dg1234uk/quizgen.html (it isn't set out very well at the moment) I have made a program which will ask the user for some questions and answeres then generate the Javascript for the quiz and this appears in a textarea so the user then cuts and pastes it into there HTML document. is there anyway you can make javascript compile the HTML document for them so they don't have to themselves?

08-01-2002, 06:51 PM
no, you can't read from or write to files with javascript.

Kevin Ar18
08-01-2002, 08:17 PM
Although you can't create the file for them, this little script might be useful:


It copies the contents of the textfield to the clipboard in IE 4+