javascript show nothing in html page.
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...
nerdbyte posted this at 05:19 — 23rd April 2003.
They have: 19 posts
Joined: Apr 2003
Hi. Can you post a link to the page you are having a problem at.
joyce posted this at 06:03 — 23rd April 2003.
They have: 164 posts
Joined: Nov 2001
http://www.katrinbj.com/i.htm
Busy posted this at 10:50 — 23rd April 2003.
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
OddLaw posted this at 17:31 — 23rd April 2003.
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.