javascript - Onload event not working with Internet Explorer -
i've written simple code on internet explorer 8 , don't understand why nothing happens when open page ie (why text 'test' doesn't appear on page).
i've tried on firefox , chrome , works perfectly.
my code :
<html> <head> <meta http-equiv="content-type" content="text/html; charset=iso 8859-1" /> <script type="text/javascript"> function display() { output.innerhtml+='test'; } </script> </head> <body onload="display()"> <div id="output"> </div> </body> </html>
edit : let ie change setting, don't hand or gets weird :-))
document.getelementbyid('output').innerhtml += 'test';
Comments
Post a Comment