CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Detecting java

  1. #1
    Join Date
    May 1999
    Posts
    2

    Detecting java

    I am trying to find out how to detect if a visitors browser is java enabled and redirect them to a page with a java code if it is.
    I have found a lot of javascript codes that can detect the browser, but nothing about how to detect if the user has java enabled.
    Is there a simple way to do this? Or a not so simple way if you can point me in that direction.

    Any help greatly appreciated.
    Jim



  2. #2
    Join Date
    Jul 1999
    Posts
    4

    Re: Detecting java

    Simple HTML can do the job nicely.


    <HTML><HEAD></HEAD><BODY>
    <APPLET CODE="MyApplet.class"
    NAME="myApplet"
    HEIGHT=400 WIDTH=400>
    <A HREF="nojava.html">
    Oups! You don't have JAVA enabled, click here.
    </A>
    </APPLET>
    </BODY></HTML>







    ---
    Real Gagnon
    Java Javascript and PowerBuilder How-to
    http://www.tactika.com/realhome

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured