How to outsource Javascript code from html code ?

Discussion in 'HTML' started by Arthur Connor, Dec 30, 2003.

  1. Is there a way of extracting the Javascript code from the "normal" HTML code
    (e.g. similar to CSS code which can be put into a separate file) ?

    If you offer a solution: can I determine in your solution where and which part
    of the code should be placed/inserted in the main HTML code?

    Sometimes a Javascript functionality is split up to several parts and/or
    it makes a big difference where the Javascript code should run/be called
    (e.g.
    - in the <HEAD>....</HEAD> or
    - at the beginning just behind the <BODY> tag
    - at the end just before the </BODY> tag.
    .....)

    Arty
     
    Arthur Connor, Dec 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Graham
    Replies:
    5
    Views:
    528
  2. davout
    Replies:
    2
    Views:
    381
    robert
    Jul 13, 2006
  3. Michael  Douma
    Replies:
    0
    Views:
    312
    Michael Douma
    Oct 11, 2005
  4. Nitin Naresh
    Replies:
    2
    Views:
    1,450
  5. Dr John Stockton

    How to outsource Javascript code from html code ?

    Dr John Stockton, Dec 31, 2003, in forum: Javascript
    Replies:
    0
    Views:
    114
    Dr John Stockton
    Dec 31, 2003
Loading...

Share This Page