Created
September 12, 2014 16:32
-
-
Save khoand0000/ee90c5bbf68329398045 to your computer and use it in GitHub Desktop.
check java install or not
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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