<script type="text/javascript">
<!--
var browser = navigator.appName;
document.open();
if(browser == "Netscape"){
document.write("<h2>Welcome <a href='http://www.java2java.com'>java2s.com</a> user.</h2>");
}else if(browser == "Microsoft Internet Explorer"){
document.write("<h2>Welcome <a href='http://www.java2java.com'> www.java2java.com</a> user.</h2>");
}else{
document.write("<h2>Welcome. But what browser are you using?</h2>")
}
document.close();
//-->
</script>
|