/    Sign up×
Community /Pin to ProfileBookmark

Calling javascript file with image tag

i dont know if its possible but i wrote a .js file and renamed it to test.jpg i called it by using the tag <script src=”test.jpg”> however nothing happened. when i renamed it to something else like test.111 it would work, so i was wondering if there is a way to call the javascript with the same img extension or even calling it by using the tag <img src=”test.jpg”> and running the javascript file.

I cannot show the contents of the javascript file and yet i still need to run it as an image file.

Thanks
Goran

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisJan 20.2004 — Gee, that sure sounds like a virus...
×

Success!

Help @druss 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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