It’s a common functionallity that you always need. I have done this myself before this way:
if(System.Windows.Browser.HtmlPage.IsEnabled == true)
It have worked great in my projects, but today I found out that this isn’t the best approach, as it doesn’t always work. I found out when I read this blog post:
Go ahead and read it :)