browser javascript capabilities

Discussion in 'ASP .Net' started by Lance, Aug 14, 2004.

  1. Lance

    Lance Guest

    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?

    Lance, Aug 14, 2004
    1. Advertisements

  2. Lance

    clintonG Guest

    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
    clintonG, Aug 14, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.