Solved

Detect Browser Security Settings and Redirect

Posted on 2007-11-28
5
910 Views
Last Modified: 2008-02-02
Is there a way via javascript to detect the web browsers security settings and redirect the user to a URL based on the settings?  
0
Comment
Question by:RenitlahHelp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 500 total points
ID: 20368860
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
 
LVL 1

Expert Comment

by:Computer101
ID: 20807211
Forced accept.

Computer101
EE Admin
0
 

Expert Comment

by:henryhbk
ID: 24000635
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
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 24002460
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question