Total members 11872 |It is currently Fri Jan 27, 2023 3:52 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Check if your browser is Microsoft Internet Explorer or Mozilla Firefox or Chrome, also checking for version
javascript code
<html>
<head>
<title>$.browser version and type </title>

<!--
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
Note you can download the JQuery package instead of using Google version. -->
<script src="jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script>


$(document).ready(function(){

if($.browser.msie) {
$('div#divMy').html('Your browser is IE');
if($.browser.version < 9) {
$('div#divMy').append('<br/>Your IE is od');
} else {
$('div#divMy').append('<br/> Your IE is new enough');
}

}else if($.browser.chrome){
$('div#divMy').html('Your browser is chrome');
}
else if($.browser.mozilla){
$('div#divMy').html('Your browser is mozilla');
}
if($.browser.webkit){
$('div#divMy').append('<br/>Your browser uses webkit');
}



});
</script>
</head>
<body>

</div>
<div id="divMy"></div>
</body>
</html>




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : $.browser Check if your browser is IE or FireFox or Chrome
 Browser     -  
 how can we get browser information in jsp?     -  
 Browser Support     -  
 AJAX - Browser support     -  
 Whats your favourite browser?     -  
 Java Web Browser (Mini Project)     -  
 Video Archive Browser in java     -  
 Browser Celsius to Fahrenheit Converstion applet     -  
 Get the client navigator browser type or operating system     -  
 Why Google Chrome     -  



Topic Tags

JQuery UI






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com