Miscellaneous > Programming & Networking

JavaScript help

(1/1)

Canadian Lover:
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: ---
--- End code ---
and here's the HTML

--- Code: ---
--- End code ---

flap:
You need to escape the " characters:


--- Code: ---
--- End code ---

should be


--- Code: ---
--- End code ---

Canadian Lover:
tahnks, it works now.

raptor:

quote: document.write("<table bgcolor='#ffffff' align='left' bordor='0'>");
--- End quote ---


border is spelt wrong!

Navigation

[0] Message Index

Go to full version