Share this Page URL
Help

Chapter 17. The Programmable Page: Addin... > Some JavaScript Examples - Pg. 204

The Programmable Page: Adding JavaScripts to Your Pages 204 { var ver = navigator.appVersion var start = ver.indexOf("MSIE") + 5 var end = ver.indexOf(";",start) browserVer = parseInt(ver.substring(start,end)) alert("Welcome Internet Explorer user!" + "\n\n" + "You are using version " + browserVer) } else { alert("Welcome " + browserName + " user!" + "\n\n" + "You are using version " + browserVer) } //--> </SCRIPT> Figure 17.9. This page displays the user's browser info.