Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9189181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:11:11+00:00 2026-06-17T20:11:11+00:00

So im trying to make a security page. This security page will check to

  • 0

So im trying to make a security page. This security page will check to see if Flash or Java is enabled, and if it is, it will lead a user to another page.

I first thought of using Javascript to achieve this but the results were not what I expected:

if (navigator.javaEnabled())
{
<?php header('Location: http://www.google.com/'); ?>
}
else
{
<?php header('Location: http://www.yahoo.com/'); ?>
}

I tried this within Chrome and Firefox and they always redirect to yahoo. I enabled the Java plug-in in Firefox (I had it disabled before this test) and restarted the browser, same results.

Its weird because before it always took me to google, even if Java was disabled. I just need a good way to detect if Java is allowed, I dont want to run any applet.

Ive been seeing around other people may have the same problem. I cant contact http://www.java.com because my host does not allow outbound connections.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:11:12+00:00Added an answer on June 17, 2026 at 8:11 pm

    On client side, in javascript, you can solve this. When you detect that java is enabled you can set window.location to redirect your user to another page.

    if (navigator.javaEnabled()) {
        window.location = "http://google.com";
    } else {
        window.location = "http://yahoo.com";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm participating in a computer security competition this weekend and I'm trying to make
I'm trying to do this: Make spring security add the return to url in
I'm trying make a login window where a user is prompted to enter their
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to make a simple number clicker control for BlackBerry 6/7, like this: At
Trying to make an xna game, where the user needs to tap to stop
I'm trying to make an executable war file ( java -jar myWarFile.war ) that
I'm trying to make a simple username/password authentication in a Spring Security web app.
I'm really stuck on this one... Basically, I'm trying to make 2 pages always
I am trying to make sure my ASP.Net library will work under Medium Trust.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.