faqts : Computers : Programming : Languages : PHP : Common Problems : Tips and Tricks

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 11 people (18%) answered Yes
Recently 0 of 8 people (0%) answered Yes

Entry

How can I tell if the users browser has Java VM enabled?

Feb 2nd, 2001 05:10
Michel Jansens, Dave Martindale,


The only way I found was to have a hidden form field that is modifyed by
a Javascript (see code below). If javascript is on then the variable js
will be set to one. This is a 2 pages process, but better than nothing.
<form name=login method=POST action="myprog.php"> 
<input type=HIDDEN name=js value="">
<input type="Submit" name="login" value="Login">
</form>
<SCRIPT>
<!--
document.login.js.value=1;
//!-->
</SCRIPT>