Can I reference another external .js file from within a .js file?

Discussion in 'JavaScript' started by Darrin, Jul 28, 2006.

  1. #1
    I know this sounds crazy, but I'm dealing with an older web app someone else made that has no common components on every page.

    I want to add the javascript from the Analytics Urchin Tracker to every page, but there are hundreds of them.

    There is one common thing on every page, which is a javascript src reference to a .js file. I wanted to see if I can just add the tracking script to this file, so it will be included on everypage, but it also has a reference to a .js page at google.

    How can I add an external .js file reference to a .js file? I looked around on Google groups, but didn't have much luck...

    Thanks!
     
    Darrin, Jul 28, 2006 IP