Skip to content

Instantly share code, notes, and snippets.

@khoand0000
Created September 12, 2014 16:32
Show Gist options
  • Save khoand0000/ee90c5bbf68329398045 to your computer and use it in GitHub Desktop.
Save khoand0000/ee90c5bbf68329398045 to your computer and use it in GitHub Desktop.
check java install or not
<!DOCTYPE html>
<html>
<head>
<title>Registration</title>
<script src="http://www.java.com/js/deployJava.js"></script>
</head>
<script>
function onLoad() {
if (deployJava.getJREs().length > 0) {
document.getElementById('install').style.display = 'block';
document.getElementById('notInstall').style.display = 'none';
} else {
document.getElementById('install').style.display = 'none';
document.getElementById('notInstall').style.display = 'block';
}
}
</script>
<body onload="onLoad();">
<div id="install">
Java is install
</div>
<div id="notInstall">Java is not install</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment