Skip to main content

Posts

Showing posts with the label javascript

How to find the browser name using JavaScript?

<html>     <title>         How to find the browser name using JavaScript?     </title>     <script>         function find_ browser ()         {             var nAgt = navigator.userAgent;             if (nAgt.indexOf(' Chrome ') != -1) {                 alert('Chrome');             }else if (nAgt.indexOf(' Firefox ') != -1) {                 alert('Firefox');             }else if (nAgt.indexOf(' Opera ') != -1) {     ...