Detect Browser Security Settings and Redirect

Is there a way via javascript to detect the web browsers security settings and redirect the user to a URL based on the settings?  
RenitlahHelpAsked:
Who is Participating?
 
b0lsc0ttConnect With a Mentor IT ManagerCommented:
RenitlahHelp,

Maybe if done by an object or something like it.  However there is no way for Javascript to just check the security settings in a browser.  For example, if Javascript were disabled then nothing would work at all, even the redirect.  Assuming javascript is enabled If certain objects are disabled then you can usually find out by ...

if (!object)

What exactly are you trying to check or use in the browser?  There will be cases where you can't do a good test like this but it will work with some.

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
 
henryhbkCommented:
Actually we just thought of a solution to the same problem:

Add text to the page something like:

"Your security settings are too high or javascript is disabled"

in a named div (or other container) then onload() of the page, run a javascript to hide/blank the text. If the script successfully works, then the user doesn't see the alert, but if not, then the alert will be passively displayed.
0
 
b0lsc0ttIT ManagerCommented:
Good alternative.  Like using the noscript tag.  Thanks for posting and sharing an interesting option for this that would be helpful for general detection of JS.
bol
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.