egweimai
04-08-2003, 03:31 AM
Hi. I have build a navigation bar with Java Applet. I would like to know if there is any java script to redirect the visitors who has not Virtual Java Mascine installed.
|
Click to See Complete Forum and Search --> : Java Applet egweimai 04-08-2003, 03:31 AM Hi. I have build a navigation bar with Java Applet. I would like to know if there is any java script to redirect the visitors who has not Virtual Java Mascine installed. Nevermore 04-08-2003, 05:55 AM You can do it, but you will also need to place a link for those people without JavaScript or Java installed. I'll have some code for you soon. viravan 04-08-2003, 02:00 PM Try this: <script> if (navigator.javaEnabled()) { // use document.write to write out the applet/object/embed tags } </script> The rest of your page goes here I am not too sure what your redirect page looks like, but with the suggested technique, if the user's browser has Java or Java script disabled, your applet would not be loaded and there is no need for a redirect Hope this help! :) PS: If your applet required a plugin (in other words, if it uses swing components), be sure to use the htmlconverter that comes with the JDK to convert your html file so that it will load the and run with the appropriate version of the JRE. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |