/    Sign up×
Community /Pin to ProfileBookmark

call js scripts from file

I’m trying to minimize the number of *.js files on my site but the guides that I have followed don’t allow my scripts to run.

I previously had 1 single script per *.js file.

I’ve now included my scripts into a functions, but when I open the page, the scripts do not run.

CODE: (*.htm file)
NOTE: this one is in a table entry…
<script src=”scripts.js”>
<!–
dateFormat();
–>
</script>

NOTE: this script’s parent is the body tag
<p><script src=”scripts.js”>
<!–
last2ofYr();
–>
</script>
</p>

If the *.js are needed for a better analysis let me know (NOTE: NO ERRORS IN SCRIPTS)

Thx

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@felgallOct 05.2006 — When you include a src= attribute in the <script> tag then everything up to the </script> tag is ignored as it loads the external Javascript file instead.
Copy linkTweet thisAlerts:
@invisiblethreatauthorOct 05.2006 — Thx, the e-book i found was confusing...stating that without the script file name listed in <script src...> tag, the function would not run...putting the src in <head> works
×

Success!

Help @invisiblethreat spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...