|
Opening a File
This seems like it ought to be really simple but I can't find it anywhere. I just want to be able to open a simple text file and write its contents to the document. I would also like to pass the filename to a JavaScript function.
function DescriptionPopUp(FileName)
{
DescriptionWindow= window.open ("",
"DescriptionWindow","status=1,width=350,height=150");
DescriptionWindow.document.write('<html><head><title>Popup</title>');
DescriptionWindow.document.write('<link rel="stylesheet" type="text/css" href="../html/VolFormStyles.css" />');
DescriptionWindow.document.write('</head><body><P></BR></P>');
DescriptionWindow.document.write(>>contents of text file here<<);
DescriptionWidnow.documet.write('<P></BR></P><P></BR></P></BODY></HTML>');
}
Can anyone point me in the right direction?
Thanks.
|