Hi,
Google used to have a service called WhatBrowser.org. They shut it down a while ago. The service showed the user what browser they were using. We want to recreate the service using Wix. How can we show the name of a visitor's browser on a text box when they open the site? We would also like to show their operating system name too.
Thank you,
Server360 Team
You can use this one...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Browser and OS Detection</title>
</head>
<body>
<div id="browserInfo"></div>
<script>
// Get browser information
var browserInfo = 'Browser: ' + navigator.appName + ' ' + navigator.appVersion;
// Get operating system information
var osInfo = 'Operating System: ' + navigator.platform;
// Display the information in the browser
var browserInfoElement = document.getElementById('browserInfo');
browserInfoElement.innerText = browserInfo + '\n' + osInfo;
</script>
</body>
</html>
You could also go for an already existing NPM-Module, like...
Platform-NPM: platform NPM Module: The platform module is a lightweight and simple library for browser and operating system detection. It provides a consistent API for retrieving information about the environment.
Browser-NPM: The bowser module is a more feature-rich library for browser detection. It not only provides information about the browser and operating system but also about the device.
Wix itself won't provide you so much possibilities and options...
a)
b)
c)
This is already all you can do on wix-website and it'S provided APIs.
So you will have to find your own ways to your solution.
!!! HAPPY CODING !!!