Randy Webb wrote:
> Andrew Poulos wrote:
>
>> I'm having some trouble getting document.createElement to work with IE
>> 5. Is this because it's unsupported? And, if it is unsupported, is
>> using innerHTML a valid workaround?
>
> <URL:
> http://msdn.microsoft.com/workshop/a...ateElement.asp
> />
>
> Implies that it should work in IE5, but what code is not "working"?
>
I've tested it further and I think the problem is different from the one
I first thought it was. Some thing like this doesn't work:
<script type="text/javascript">
window.onload = foo;
</script>
<body>
whereas this does work:
<script type="text/javascript">
</script>
<body onload="javascript
:foo();">
This is not the way I want to handle events. Is there something I can do
to get the first way (event handlers?) to work in IE5?
Andrew Poulos