Solved

Detect Browser Security Settings and Redirect

Posted on 2007-11-28
5
909 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Worldmap 1 28
JavaScript code not working 3 33
Validating Date 4 29
Given a github repo find email address of all collaborators in that repo 1 36
Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

733 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