Posted By

nveselinov on 10/17/10


Tagged

javascript js ie browser detect


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

trusktr


IE checker


 / Published in: JavaScript
 

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  5. <script type="text/javascript">
  6. $(document).ready(function(){
  7.  
  8. if($.browser.msie)
  9. {
  10. alert("Има и по-добри браузъри!");
  11. if($.browser.version<8)
  12. {
  13. alert("Браузъра е тъп и стар!");
  14. }
  15. }
  16. });
  17. </script>
  18. </head>
  19. <body>
  20.  
  21. </body>
  22. </html>

Report this snippet  

You need to login to post a comment.