Posted By

allnatural on 09/09/10


Tagged

javascript conditional chrome


Versions (?)

Chrome Conditional Javascript Statement


 / Published in: JavaScript
 

URL: http://www.astralmedia.org

Use this to create a conditional statement for chrome.

  1. <script type="text/javascript">
  2. if (navigator.userAgent.toLowerCase().match('chrome'))
  3. document.write('This is a Chrome browser');
  4. </script>

Report this snippet  

You need to login to post a comment.