How to detect when the browser is too small and then ask visitors to enlarge the browser to continue?

advertisements

Is it possible to create a jquery script, there can detect when the browser is to small and then tell your visitors to enlarge browser to continue?

Does anyone know a jquery script for that?


What about when their browser is maximized and then it is still too small?

Will they have to constantly deal with the message?

Here is a sample script:

if( window.clientWidth < 1000 ){
 alert("Send your business elsewhere");
}

This idea of forcing the user to resize seems too invasive to be of any use though, because users should determine their window size. Responsive design is to mold the view to the user, not to mold the user to your view.