Java script doesn't work on IE8

SarbinowoNovo

New Member
I have designed a website, in which (surprisingly) java script and jquery do not work on IE8. I have simplified my code to a single java script in order to isolate the problem but it still doesn't seem to work. Here is the code sample:\[code\]<!DOCTYPE html><html><head><script type="text/javascript" src="http://stackoverflow.com/questions/15717903/jquery-1.9.1.min.js"></script><!--<script src="http://stackoverflow.com//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">--><script>/* get the year for the footer */ var x = new Date(); var year = x.getFullYear();</script><title> my website </title> </head><body> <p> &copy; <b>name of company</b>, place, <script>document.write(year);</script> </p></body></html>\[/code\]Note that I have tried to define the DOCTYPE tag like this as well:\[code\]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\[/code\]just in case there's an HTML5 compatibility problem, but no use.Thanks in advance for your helpRoi
 
Back
Top