I have a html page with two alerts and it's source is given below: <html> <head> <script language="JavaScript" src="test.js" type="text/javascript"> <script language="JavaScript" type="text/javascript"> alert("Hi"); </script> </head> <body> <script language="JavaScript" type="text/javascript"> alert("Hi"); </script> </body> </html>
and in the test.js file, I have kept another alert and I am loading this HTML file from another HTML page using $ ("#testDiv").load("TestAlerts.html"); This is working fine in FireFox 2+. But it is not working in Internet Explorer 7. What would be the problem?