I can get a source file to write html code fully in Iexplorer. However, in
Netscape 4.8, I cannot get it to write this particular line: <SCRIPT
LANGUAGE="JavaScript" SRC="src1.js"></script> in the code. All other lines are
written. Is there some trick I need to do?
The script file src1.js :
function selectFile() {
var pdbFile = 'file:///' + document.form1.fileN.value;
document.writeln('<html>');
document.writeln('<head>');
document.writeln('<title>Chime Viewer</title>');
document.writeln('<SCRIPT LANGUAGE="' + 'JavaScript' + '" SRC="' + 'src1.js'
+'"></script>');
//document.writeln('<SCRIPT LANGUAGE="JavaScript" SRC="src1.js"></script>');
document.writeln('</head>');
document.writeln('<body>');
document.writeln( pdbFile );
document.writeln( '<br>' );
document.writeln('<embed name="mmol" width=500 height=500 startspin=False
spiny=20 ')
document.writeln(' src="' + pdbFile + '" ')
document.writeln('type=application/x-spt script="wireframe 25; ')
document.writeln('spacefill 85; zoom 150" color2d=black bgcolor2d=black >
</embed>');
document.writeln('<form name=form1>');
document.writeln('<input type=file name="fileN">');
document.writeln('<input type=button onClick="selectFile()" value="Open
File">');
document.writeln('</form>');
document.writeln('</body>');
document.writeln('</html>');
document.close()
}
===========================
Thanks,
Jeff