logo

nameOfBrowser and versionOfBrowers (javascript)

JavaScript: The Definitive Guide

Overview: These two functions produces the name and version of the client's browser

function nameOfBrowser()
{
	var stBrowserName;
	stBrowserName=navigator.appName;
	return(stBrowserName);
}
function versionOfBrowser()
{
	var stBrowserVersion;
	stBrowserVersion=navigator.appVersion;
	return(stBrowserVersion);
}
s