Chrome Conditional Javascript Statement


/ Published in: JavaScript
Save to your folder(s)

Use this to create a conditional statement for chrome.


Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. if (navigator.userAgent.toLowerCase().match('chrome'))
  3. document.write('This is a Chrome browser');
  4. </script>

URL: http://www.astralmedia.org

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.