Script to redirect users on unsupported browsers to another page

Our site isn’t supported by all browsers, so I want to have some sort of script that recognises when a user comes to our domain via an unsupported browser (IE for example) that either displays a pop-up message with our contact details, or redirects them to a simple webpage with an error message and our contact details.