Browser version checking ?

Hello,
I have several VirtualBox Computers and one is an old XP with IE7 installed.
I tried to connect to the poker server with IE7 and since the server supports only IE10+ it doesn't work ... but I only have a javascript error and nothing that appears (I expected at least a generic html error page).
I know I could add some javascript in the "top html" tag to test browser version and return an html error, but I also want to avoid loading the html5 client in this case.
Is there a way to to that ?
Thanks
I have several VirtualBox Computers and one is an old XP with IE7 installed.
I tried to connect to the poker server with IE7 and since the server supports only IE10+ it doesn't work ... but I only have a javascript error and nothing that appears (I expected at least a generic html error page).
I know I could add some javascript in the "top html" tag to test browser version and return an html error, but I also want to avoid loading the html5 client in this case.
Is there a way to to that ?
Thanks