Browser check while visiting the Website

Posted by Raj.Trivedi under ASP.NET on 5/18/2013 | Points: 10 | Views : 881 | Status : [Member] [MVP] | Replies : 2
Hello Team,

I want to check which browser is been used by the user to browse the website.If the user is using Browser which does not support HTML 5 then i want him to redirect him to page where it shows him to use the browser that supports HTML 5.

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved



Responses

Posted by: Blessyjees on: 5/20/2013 [Member] Bronze | Points: 25

Up
0
Down
Hi,

You can use Modernizer to check the browser supports the html5 features. Modernizer is an open source. If your browser does not support the canvas of html5, the Modernizr.canvas property will be false.

if (Modernizr.canvas) {
//support html5
} else {
// html5 support not available :(
}

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Raj.Trivedi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vmmr86 on: 5/20/2013 [Member] Starter | Points: 25

Up
0
Down
Hello Raj,

You can find best solution for your problem in this article. Please follow the below link.

http://msdn.microsoft.com/library/3yekbd5b

Murali

Raj.Trivedi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response