Ultra fast cheap  linux and windows hosting
javascript tutorial Browse Basic JavaScript Tutorial
Browse JavaScript Script resources
Browse javascript FAQS
Categories:

javascript tutorial
buy template
Home >> Tutorials >> Advanced javascript tutorials
Javascript Browser checking:
This piece of javascript code will check which browser (and version) your user is running.

<html>
<head>

<script language="javascript">

var browserName = navigator.appName;
var browserVersion = navigator.appVersion;

var browserVersionNum = parseFloat(browserVersion);

function detectbrowser()
{

BrowserInfo = " (Your browser is " + browserName + " " + browserVersionNum +")";

alert(compatible + BrowserInfo);

}

<body>

<a href="javascript:detectbrowser()">Checkbrowser</a>

</body>

</html>



 

Page contents: itechies.net - Learn how to do Browser checking using javascript.
javascript tutorial
javascript book
Buy this book