I use document.write() to output a whole document including <HTML><LINK for CSS><HEAD><BODY><FORM> tags etc.
The page displays correctly.
I then wish to include some js functions in the <HEAD> using document.write,
eg line1: document.write('<SCRIPT language="JavaScript">');
eg line2: document.write('alert("testing");'); etc etc
however it fails.
If you write an entire page with document.write how then do you include further javascript in the document for handling form events etc.
Any assistance will be greatly appreciated.
The page displays correctly.
I then wish to include some js functions in the <HEAD> using document.write,
eg line1: document.write('<SCRIPT language="JavaScript">');
eg line2: document.write('alert("testing");'); etc etc
however it fails.
If you write an entire page with document.write how then do you include further javascript in the document for handling form events etc.
Any assistance will be greatly appreciated.
Comment