javascript show nothing in html page.

They have: 164 posts

Joined: Nov 2001

i wanted to include a dhtml menu in my header file. i saved my header file as .js..

in my index.htm, i include my header.js..

<script LANGUAGE="JavaScript" type="text/javascript" src="header.js"></script>
'

before i added the dhtml menu in my header, everything works fine. after adding the dhtml menu, when i open index, it nv show the header part anymore.. and it shows no error...

wat is the problem then??

in my header file i have and in my index file i also have will tat be a problem??

pls advice...

They have: 19 posts

Joined: Apr 2003

Hi. Can you post a link to the page you are having a problem at.

They have: 164 posts

Joined: Nov 2001

Busy's picture

He has: 6,151 posts

Joined: May 2001

i get javascript error
Line: 254
Char: 25
Error: Unterminated string constant
Code: 0

you should remove all the html tags from that file (head, body ..) and use the pages one

They have: 49 posts

Joined: Apr 2003

I do not know if this will work, but I'm sure it will work:

use the absolute URL insead of just "header.js". Maybe the javascript file is in a diffrent directory as the page.

Em One Kay Three

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.