ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1883

Simple Browser detection in JavaScript

by datagroove - 02-12-2019 - 02:51 PM
#1
A simple method developed in JavaScript to detect browser type and version

Browser Info.html
Code:
<script>
// Identify Browsers
// By default browsers use misleading information, the solution is specify the version
if (navigator.userAgent.indexOf("Firefox/54") != -1) {alert('Using Firefox v54');}
if (navigator.userAgent.indexOf("rv:11.0") != -1) {alert('Using IE v11');}
if (navigator.userAgent.indexOf("Version/5.1.7") != -1) {alert('Using Safari v5.1.7');}
if (navigator.userAgent.indexOf("Edge/14") != -1) {alert('Using Edge v14');}
if (navigator.userAgent.indexOf("OPR") != -1) {alert('Using Opera 46.0');}
if (navigator.userAgent.indexOf("Chrome/59") != -1) {alert('Using Chrome v59');}
</script>

Download:
Hidden Content
You must register or login to view this content.



Virus Scan:
Hidden Content
You must register or login to view this content.

BestChange - Exchange money at the best rates - https://www.bestchange.com/?p=936130
Pure VPN - Protect your data with the best vpn - https://rebrand.ly/Pure_VPN
Contact me by Email - https://bit.ly/Contact_Hacxx_Gmail
The House Of Credit Card - Findsome.ru
Reply

Users browsing: 6 Guest(s)