Jump to content

Force to a different browser


jokerfool

Recommended Posts

You can't force the browser to switch, but you can refuse to load your page for certain browsers.  I can imagine maybe the OP wants to block IE6 or something.

 

You'll have to get the user agent of the browser and then check that against a list and then you can do something, like show a page telling the user to use a different browser.

 

The user agent can be changed by the user in some cases though, so it's not a fool-proof way to prevent someone from viewing your page. :)

You cannot force the user to do anything.

 

My P90 Gun Disagrees  with that statement :P

 

In any case, you can detect what the browser says its name is, but that's not 100% proof, but would be okay for a basic validation.

 

What are you trying to achieve ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.