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

    Join Date
    Aug 2002
    Location
    CA
    Posts
    23
    Rep Power
    0

    Question JavaScript Include


    Does any one know if it is possible to include a JavaScript file
    within a web form? If so how. I'm trying to centralize my
    scripts.

    I'm doing this??

    <script src="filename.js"> language=JavaScript>

    Thanks
  2. #2
  3. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    <script type="text/javascript" language="javascript" src="filename.js"></script>

    You don't include a script "within a web form" - you just load it into the document, along with any JS hardcoded in the .html file, and it runs in the page as if it were hardcoded there as well.

    http://www.pageresource.com/jscript/jxtern.htm
  4. #3
  5. No Profile Picture
    Ahhh
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    CA
    Posts
    23
    Rep Power
    0
    Many thanks for the fast reply.

IMN logo majestic logo threadwatch logo seochat tools logo