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++ - Is it possible to compile a VST on linux? -

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

php cli reading files and how to fix it? -