Hey there, I'm working on a project where I need to detect the user's browser in JavaScript. For Safari browsers, I have to download an audio file, while for every other browser I need to play the audio. Currently, my code can correctly identify Safari as the browser, but I'm not sure how to communicate this information to my server side which is written in Java. Is there a way to use JavaScript to set a boolean flag on the server side?
For example:
var detector = code...(This code detects the browser as Safari)
if(detector)
{
// Code to set a flag on the server side indicating that the browser is Safari and needs to download the captcha.
}