JavaScript to test for Internet Explorer -


what shortest java-script return 0 if not internet explorer, , 6-9 version is?

one option: use ie's conditional comments:

<script>var ieversion</script>  <!--[if ie 8]> <script>ieversion = 8</script> <![endif]--> 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -