When I try validating the file it says that onLoad doesn't exist. How the heck to do you run JS automatically in XHTML then?
Printable View
When I try validating the file it says that onLoad doesn't exist. How the heck to do you run JS automatically in XHTML then?
onload or onLoad? XHTML is case sensitive. Should be onload.
God damn it. Thanks. I've always used onLoad, in fact, I'm sure I was told (in articles) that it is onLoad with a capital L. anways, thanks. I'll probably be having waaay more why doesn't this validate questions coming up.
Im sure most browsers will work with onLoad as they generally take a very lax approach to parsing. Wish they wouldnt though as the whole point of XHTML was to start forcing developers to write web pages correctly. :p
Well, my pages validate as HTML 4.01, but I'm trying to make them work in XHTML 1.1. I guess I'll have to start doing things properly. I'll be time worth spent when it's done though. It just feels soo nice when the document validates for the first time.
:bigyello:
Big warm and fuzzy knowing you are uber XHTML follower! :p