<html> <head> <script type="text/javascript"> function browserversion() { txt="Your browser is unknown" browser=navigator.appVersion if (browser.indexOf("2.")>-1) { txt="Your browser is from the stone-age!" } if (browser.indexOf("3.")>-1) { txt="You should update your browser!" } if (browser.indexOf("4.")>-1) { txt="Your browser is good enough!" } document.getElementById("message").innerHTML=txt } </script> </head> <body onload="browserversion()"> <span id="message"></span> </body> </html>
Edit the text above, and click on the button to see the result.
Copyright © 2007-2008, Www.JavaBasics.We.Bs All rights reserved.