Hello Tom,
What you need to do is to create a custom Visual WebGui control that will add a JavaScript function that performs this check and then create and send an event with that information to server-side, to be handled.
You can call this JS function via server-client invocation.
You should probably start by creating a simple SkinnableControl and then registering it to your application.
For information on skinnable controls, please view this article here.
For information on registering controls, please view this article here.
For information on client-server events, please view this article here.
For information on server-client invocation, please view this article here.
Regards,
Ori Cohen
Support Manager, the Visual WebGui team