Initial Import
git-svn-id: https://beef.googlecode.com/svn/trunk@2 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
17
modules/standard/detect_java/template.js
Normal file
17
modules/standard/detect_java/template.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function do_main(){
|
||||
|
||||
// https://developer.mozilla.org/en/DOM/window.navigator.javaEnabled
|
||||
// bug in XP SP2
|
||||
if( window.navigator.javaEnabled() ) {
|
||||
result = "Java is available in browser";
|
||||
} else {
|
||||
result = "Java is NOT available in browser";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var result = null;
|
||||
|
||||
do_main();
|
||||
|
||||
return_result(result_id, result);
|
||||
Reference in New Issue
Block a user