A
Andrew Poulos
How can I detect whether VML is supported?
Andrew Poulos
Andrew Poulos
Andrew said:How can I detect whether VML is supported?
VK said:IE 5.5 or higher is the only one with VML support, so that's easy:
<script type="text/javascript">
/*@cc_on @*/
/*@if (@_jscript_version >= 5.5)
var isVML = true
@else @*/
var isVML = false
/*@end @*/
// rest of your code
</script>
This way for IE5.5> isVML will be true, for all other UA's isVML will
be false.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.