wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 24183

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: 15376
you just do it like a image source
jQuery in Action, 2nd edition
subject: Calling JS from a folder.
Similar Threads
Javascript not working in Netscape 7.01
Send requsts to a php file using AJAX
Passing workStation time to a servlet?
how to stop my return string from being encoded?
how to call js file from jsp