00 Votes

JavaScript Browser Check: Is Browser still up to date?

Question by Alaska1966 | 2016-01-17 at 19:49

I am searching for a script that should notify the user or visitor of my website in case that their browser is not up to date anymore.

The reason is that I have discovered that some users are visiting my page with an old browser and that the website is not displayed correctly because of that. So, I am searching for a script for Opera, Chrome, Firefox and IE.

ReplyPositiveNegative
0Best Answer0 Votes

In general, here you can find some information about how to check for a browser version and browser name. So, you can just check for another version depending on the browser in order to show a notification, for example in form of a DIV box that is invisible otherwise.

However, there is one question: Do you really want to force the user to always use the absolute current version of each browser? Or wouldn't it be better to just ensure something like a minimum required browser version? For example, if your scripts are running in all Internet Explorer browsers since Internet Explorer 8, I would just check for the browser version 8 and before and not whether someone is using 9, 10 or 11, because that is making the difference.

This question is also important because otherwise you have to update your script whenever a new browser version comes out and just consider the Firefox update cycle and the work that would make.
2016-01-18 at 18:57

ReplyPositive Negative
Reply

Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.