Results 1 to 2 of 2

Thread: starter on jsp

  1. #1
    zoe
    zoe is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default starter on jsp

    I have a page that uses java, I didn't write the code, don't know java, is there a way to check to see if java is enabled or not and then either open the java page or open a page where the user can go to download java?
    If so could you please post a sample of the code or a url where I can get it.
    Thanks

  2. #2
    fernando is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default

    please check this example,
    XML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Java Installed?</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script type="text/javascript">
    function isJava(){
    	if(!navigator.javaEnabled())
    	{
    		var message = confirm("You either have java disabled or you currently don't have java installed. Would you like to download java?");
    		if(message)
    		{
    			window.location = "http://java.sun.com";
    		}
    	}
    }
    window.onload = isJava;
    </script>
    </head>
    
    <body>
    
    </body>
    </html>
    Greetings.

Posting Permissions

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