On a page I have, there is a menu section on the left, containing a lot of HTML. My question is, is there anyway I can possibly point to "leftmenu.js" or something? That way I won't have to update every page if I want to change the menu.
Printable View
On a page I have, there is a menu section on the left, containing a lot of HTML. My question is, is there anyway I can possibly point to "leftmenu.js" or something? That way I won't have to update every page if I want to change the menu.
not sure what your asking but toinclude a .js file:
<SCRIPT language="javascript" src="../file.js">
</SCRIPT>
Yeah, I know how to do that.
Just wondering if it will work by somehow using the document.write thing.
I think JavaScript has a limit of how many characters can be between ' and ', so it might be kind of hard.
a ok, i tried it once to put a full html page in a javascipt
variable, and it work! with asp too!but don't forget
to put a line (\n->javascript,vbcrlf->asp)so that if you
check your code after it wont be on one line!!