/    Sign up×
Community /Pin to ProfileBookmark

Forget <noscript>…

How can I determine if Javascript is enabled?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Jeff_MottMar 08.2007 — If you're forgetting about NOSCRIPT, then you can't.
Copy linkTweet thisAlerts:
@aj_nscauthorMar 08.2007 — I just had my epiphany here ->http://particletree.com/features/the-hows-and-whys-of-degradable-ajax/ I didn't actually use any of their code, but while I was reading it I came across this idea, don't worry if Javascript is [I]dis[/I]abled, but do something special if it is [i]en[/i]abled. (I was thinking about this the opposite way in my OP, despite the wording I used in it).
Copy linkTweet thisAlerts:
@KorMar 08.2007 — Simply call a function onload. If javascript is enabled, the function will be triggered

<i>
</i>&lt;script type="text/javascript"&gt;
onload=function(){
alert('Javascript is enabled!')
}
&lt;/script&gt;
×

Success!

Help @aj_nsc 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,
)...