IE5 and document.createElement

A

Andrew Poulos

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?

Andrew Poulos
 
A

Andrew Poulos

Randy said:
<URL:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/createElement.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top