• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling JS from a folder.  RSS feed

 
Kevin McNally
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that JavaScript and Java are two different things. Moving this to HTML/JavaScript forum.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you just do it like a image source
src="thefolder/theFile.js"
Eric
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!