Ocamljs includes a partial binding to the browser DOM. There are of course many incompatibilities between browsers. This library makes no attempt to paper over them. See the Ocamldoc and some exampes.
Ocamljs