Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I include a .js file in a .js file ?

Status
Not open for further replies.

niblet

Programmer
Aug 7, 2001
30
US
Hi,

I have a bunch of validation, cookie, rollover et. al functions that I would like to keep in separate re-usable
files, and write site specific .js files for individual site needs.

Is there a way to include .js files inside of .js files the way you do in c or java ?? can someone give me an example. I've looked in a few books and web pages and don't see any examples, of how to do that .. Maybe there's a different referencing system that in other languages, I'm just not seeing it though it seems to me you should be able to do it.

thanks


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top