I have a page with form for user registration. I wrapped it with <!--[if IE]> ... <![endif]-->
to show it only in IE. And corresponding error is shown for other browsers: <![if !IE]>...<![endif]>
.
But this doesn't fully work with IE 10. One can use java-script to determine IE 10, like:
<script type="text/javascript">
var pattern = /MSIE\s([\d]+)/;
var ua = navigator.userAgent;
var matched = ua.match(pattern);
if (matched) {
alert("IE 10");
}
</script>
But how can I bind it with html block I use for IE7+?
Updated
It needs for using the IX509 Windows interface which demands IE usage because it is COM object (I'm not sure, but it seems it uses ActiveX for it), otherwise strange errors will appear on a page when IX509 is used.