I want a seperate file that contains all my code for a web site and the html files just refer to this when they run. I have never done this so would like your help. An example would be great!!
Some would argue that the "include" approach is improper. However it will only work if you have some sort of server-side include facility at your disposal.
Using the "proper"
Code:
src[\code] attribute of the [code]<script>
tag should work for any browser, and almost any server including free hosting servers.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.