Click to See Complete Forum and Search --> : How to Invoke onLoad event for <div> tag


vikasagrawal
02-19-2003, 08:12 AM
Hi,
Could anybody help me to make div tag responding to onLoad event?
Thanks

gil davis
02-19-2003, 08:15 AM
A DIV tag does not have an onload event. Can you clarify?

vikasagrawal
02-19-2003, 08:18 AM
I know div tag doesn't have onLoad event but I guess we should be able to register it or route it from body onLoad event.

gil davis
02-19-2003, 08:35 AM
You have not indicated why you want an onload for a DIV, but here is an explanation of how to do it:

http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-addEventListener

vikasagrawal
02-19-2003, 08:47 AM
Thanks but could anybody suggest the solution for DOM Level 1.