Epimetheus
Technical User
Not sure if this is the correct forum for this, but here goes...
I'm trying to get to grips with XHTML, but I'm having trouble with one aspect of getting it to validate correctly. The problem is with event handlers. I'm wanting to call a javascript funtion from the <body> tag using the onLoad event i.e. <body onLoad="....()">, but XHTML treats the inclusion of the onLoad in the <body> tag as an attribute of the <body> tag and states that, as an attribute, onLoad does not exist as a valid on!
Does anyone have any ideas how to get around this, as I asume it will result in the same error for any event handler used.
I'm trying to get to grips with XHTML, but I'm having trouble with one aspect of getting it to validate correctly. The problem is with event handlers. I'm wanting to call a javascript funtion from the <body> tag using the onLoad event i.e. <body onLoad="....()">, but XHTML treats the inclusion of the onLoad in the <body> tag as an attribute of the <body> tag and states that, as an attribute, onLoad does not exist as a valid on!
Does anyone have any ideas how to get around this, as I asume it will result in the same error for any event handler used.