By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,244 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,244 IT Pros & Developers. It's quick & easy.

How to outsource Javascript code from html code ?

P: n/a
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

Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Arthur Connor wrote:
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) ?


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.

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.