/    Sign up×
Community /Pin to ProfileBookmark

src not working

Hi

Why is that when I link in a script using

<script language=”Javascript” src=”myscript.js”>

it doesn’t work. But if I just embed it into the page it does?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@CrazyFeb 14.2004 — Is you .js file in the same folder as the page using it? Also, have you ensured that the .js file only contains javascript code (no script tags)?

If that doesn't resolove the problem then show us your code so we can see what it is your trying to do.
Copy linkTweet thisAlerts:
@SulauthorFeb 14.2004 — Hi

It doesn't have any script tags, and it's in the same folder.

~Fixed it - the problem was in my html, not in my javascript.
Copy linkTweet thisAlerts:
@PittimannFeb 14.2004 — Hi!

Did you add a closing script tag in your html document?

Cheers - Pit
Copy linkTweet thisAlerts:
@SulauthorFeb 14.2004 — Yes I did
×

Success!

Help @Sul 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...