File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Calling JS from a folder. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Calling JS from a folder." Watch "Calling JS from a folder." New topic

Calling JS from a folder.

Kevin McNally

Joined: Sep 24, 2003
Posts: 6
I have an html site using a Javascript menu, and I want to call the javascript from a different folder so that any changes that need to be made to the menu only need to be done once.

I want to call it from a folder entitled "menu"
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Note that JavaScript and Java are two different things. Moving this to HTML/JavaScript forum.

[Jess in Action][AskingGoodQuestions]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
you just do it like a image source
I agree. Here's the link:
subject: Calling JS from a folder.
It's not a secret anymore!