where can I get sample code or referrence document about DOM JavaScript ?

I have a web application write on IE6 ( JavaScript & MS DHTML ), but it can't run in orther web browser, I want convert the code to fit other  web browser  well.
I read the DOM level 1 specification, I know the DOM , but I am not sure how to use DOM in HTML JavaScript with "Appendix D: ECMA Script Language Binding".
Microsoft MSDN have a DHTML  referrence,but it only work in IE. I want a similar referrence of  JavaScript work with  W3C DOM, or some sample code to teach you how to write JavaScript with DOM. 
By the way, the code "<script> document.write("Hello!"); </script>" can work,but the code ""<script> HTMLDocument.write("Hello!"); </script>" can not work! Why? Is the "document" is the default object have already declare in system? and how can I get the other object listed in "Appendix D: ECMA Script Language Binding" ? 


???????????????
Peter

Received on Friday, 30 December 2005 08:12:42 UTC