Adding a browser detect code

Hi, I’m not massively great on the coding side of things and was wondering if anyone could help.

I would like to run some code that does a browser detect for Safari 11, if the user isn’t using Safari 11 then a message appears stating that the site is best viewed in Safari 11 with a prompt and link to download the latest version of Safari.

Unfortunately the styling of my site in looks terrible in a lower common denominator Safari browser and according to Wix they only support Safari 11 - hence the request for the browser detect. Apparently this can only be achieved with the use of code. Can anyone help?!

Many thanks…

https://www.wix.com/corvid/forum/community-discussion/is-there-a-way-to-know-which-browser-the-user-is-using

Thanks very much - I will take a look!

@willum1970 userAgent sniffing is a bad practice and hell to sort through.

You should absolutely try a different solution first.
https://webaim.org/blog/user-agent-string-history/