jakelacourse
New Member
hi first (Jezen Thomas ty your code help me, but i cant use it), i have to make this code work with out calling jquery (since we dont know if it will be supported), so basically i have to get this code to show the ie version, only using html and javascript\[code\]<html> <!--[if lt IE 7 ]> <html class="ie6"> <![endif]--<!--[if IE 7 ]> <html class="ie7"> <![endif]--> <!--[if IE 8 ]> <html class="ie8"> <![endif]--><!--[if IE 9 ]> <html class="ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!--> <html class=""> <!--<![endif]--><head><title>A HTML document needs a title to be valid.</title></head><body><script type="text/javascript"> window.onload = function mytest(){"use strict";// Detecting IEvar oldIEif ($('html').is('.ie6, .ie7, .ie8')) {oldIE = 1; }if (oldIE == 1) { document.write("version<ie9") } else { document.write(" version => ie9")}}</script></body></html>\[/code\]i have to remove the ($) but i dont know for what to replace it (i just recently started with javascript)