If you are only vaguely familiar with JS, please look away as this is complete gibberish. Anyway...
I'm trying to use "document.write" to display a user input on a very basic page. The thing is, I'm trying to have some sort of consistency as far as background, banners, etc. between the JS written page and the ones I've coded myself.
I'm able to display things properly with document.write, but I'm trying to add the background images, etc.
Specifically, I want to add the following code snippet inside document.write("....");
document.write("
MY TEXT
");
I can't get it to work right, though. I've been told that I have to add a '\' in front of " so the browser doesn't get confused, but even if I do that it still won't load. Is it the semi-colon tripping things up or what?
I hope that makes sense to someone.
Thanks.
I'm trying to use "document.write" to display a user input on a very basic page. The thing is, I'm trying to have some sort of consistency as far as background, banners, etc. between the JS written page and the ones I've coded myself.
I'm able to display things properly with document.write, but I'm trying to add the background images, etc.
Specifically, I want to add the following code snippet inside document.write("....");
document.write("
MY TEXT
");
I can't get it to work right, though. I've been told that I have to add a '\' in front of " so the browser doesn't get confused, but even if I do that it still won't load. Is it the semi-colon tripping things up or what?
I hope that makes sense to someone.
Thanks.