Install Brave Browser for 30 days and earn money - http://bit.ly/_brave_browser
SearchSearch CalendarCalendar GalleryGalleryAuction-PortalAuctionsMembersMembers StatisticsStats
get your RSS-Feed
Language/Sprache:  Admin  
 Login: ChatChat (0) new User-MapUser-Mapsend Passwordsend Password RegisterRegister

Forum Overview » Beta Cyberlord » JS » Simple Browser detection in JavaScript
Pages: (1) [1] »
Registration necessaryRegistration necessary
Simple Browser detection in JavaScript
coolnoiseno Access no Access first Post cannot be deleted -> delete the whole Topic 
Group: User
Level:


Posts: 77
Joined: 6/3/2023
IP-Address: saved
offline


A simple method developed in JavaScript to detect browser type and version

Browser Info.html

<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>



Protect yourself with Pure VPN - https://billing.purevpn.com/aff.php?aff=44512
9/3/2023 3:53:36 AM    
Registration necessaryRegistration necessary
Pages: (1) [1] »
all Times are GMT +1:00
Thread-Info
AccessModerators
Reading: all
Writing: all
Group: general
none
Forum Overview » Beta Cyberlord » JS » Simple Browser detection in JavaScript
Install Brave Browser for 30 days and earn money - http://bit.ly/_brave_browser

.: Script-Time: 0.094 || SQL-Queries: 6 || Active-Users: 3,049 :.
Powered by ASP-FastBoard HE v0.8, hosted by cyberlord.at