Stop Microsoft

Miscellaneous => Programming & Networking => Topic started by: Canadian Lover on 4 May 2003, 22:16

Title: JavaScript help
Post by: Canadian Lover on 4 May 2003, 22:16
OK, you guys, I'm now having problems in JavaScript. What I'm trying to do, is to write a table into a .js file (using the proper formatting, of corce) so I can just plug it in to all my pages. I load a page that calls up the script, and it dosn't load.

Here's the JavaScript code:
Code: [Select]
and here's the HTML
Code: [Select]
Title: JavaScript help
Post by: flap on 4 May 2003, 22:29
You need to escape the " characters:

Code: [Select]

should be

Code: [Select]
Title: JavaScript help
Post by: Canadian Lover on 5 May 2003, 06:24
tahnks, it works now.
Title: JavaScript help
Post by: raptor on 6 May 2003, 03:56
quote:
document.write("<table bgcolor='#ffffff' align='left' bordor='0'>");


border is spelt wrong!