#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Amsterdam, The Netherlands
    Posts
    16
    Rep Power
    0

    Question Linking to external Javascript in NS 4.77


    Hi everybody,

    I would like to put all my scripts on one place on my site, that would be the 'script' folder.

    When i'm linking from a html page to that script, it goes like this:
    <script language="JavaScript" src="../script/menu.js"></script>

    Internet Explorer 5.5 and higher doesn't consider that to be much of a problem.
    Netscape 4.77 does, anybody suggestions???

    Alex
  2. #2
  3. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    38
    That's exactly what I am doing, and I'm not having any problem with them in N 4.77. However, I also have the following attribute added:
    Code:
     type="text/javascript"
    Make sure your .js files do not contain anything other than Java&#83;cript. If all else fails, you could try including them with server-side includes, but you should be able to get them to work externally the way you are trying.
    Michael
  4. #3
  5. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    this might help...

IMN logo majestic logo threadwatch logo seochat tools logo