By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,796 Members | 1,205 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,796 IT Pros & Developers. It's quick & easy.

browser javascript capabilities

P: n/a
Hi,
Is there a way to tell if a browser is currently capable of javascript? ie
if the user has disabled it or not? I understand that the
Request.Browser.JavaScript property will tell if a browser *may* be capable,
I'd like to know if a browser is *currently* allowed to run javascript.

The following test returns true, whether or not the user has altered their
security settings to disallow javascript:

javascript: <%= Request.Browser.JavaScript%>

If there isn't a way to do this with server-side code, does anyone know of
an elegant solution for javascript-capability sniffing?

Thanks,
Lance
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Google has hundreds of articles that explain techniques to
determine if JavaScript -- or cookies -- have been disabled
but your correct to understand that the framework only provides
the ability to determine if the user agent can support JavaScript
but does not tell us if it has been enabled or not.

I'd like to learn the most elegant methodology myself

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"Lance" <news@[nospam]keayweb.com> wrote in message
news:cf*******************@news.demon.co.uk...
Hi,
Is there a way to tell if a browser is currently capable of javascript? ie if the user has disabled it or not? I understand that the
Request.Browser.JavaScript property will tell if a browser *may* be capable, I'd like to know if a browser is *currently* allowed to run javascript.

The following test returns true, whether or not the user has altered their
security settings to disallow javascript:

javascript: <%= Request.Browser.JavaScript%>

If there isn't a way to do this with server-side code, does anyone know of
an elegant solution for javascript-capability sniffing?

Thanks,
Lance

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.