How to outsource Javascript code from html code ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arthur Connor

    How to outsource Javascript code from html code ?

    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

  • Peter Connolly

    #2
    Re: How to outsource Javascript code from html code ?

    Arthur Connor wrote:[color=blue]
    > 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) ?[/color]

    Answered in the javascript newsgroup by several people. Odd that you'd find
    Javascript help in a Javascript newsgroup rather than a HTML
    newsgroup...... .

    Regards,

    Pete.



    Comment

    Working...