module Dom_html:DOM HTML bindingsig..end
This is a partial binding to the DOM HTML API.
class type cssStyleDeclaration =object..end
type (-'a, -'b) event_listener
'a is the type of the target object; the second parameter
'b is the type of the event object.class type event =object..end
class type mouseEvent =object..end
class type keyboardEvent =object..end
class type mousewheelEvent =object..end
class type mouseScrollEvent =object..end
class type eventTarget =object..end
onclick,
onkeypress, ...
class type element =object..end
class type clientRect =object..end
class type clientRectList =object..end
class type['a]collection =object..end
class type htmlElement = elementclass type headElement =object..end
class type linkElement =object..end
class type titleElement =object..end
class type metaElement =object..end
class type baseElement =object..end
class type styleElement =object..end
class type bodyElement = elementclass type formElement =object..end
class type optGroupElement =object..end
class type optionElement =object..end
class type selectElement =object..end
class type inputElement =object..end
class type textAreaElement =object..end
=object..end
class type labelElement =object..end
class type fieldSetElement =object..end
class type legendElement =object..end
class type uListElement = elementclass type oListElement = elementclass type dListElement = elementclass type liElement = elementclass type divElement = elementclass type paragraphElement = elementclass type headingElement = elementclass type quoteElement =object..end
class type preElement = elementclass type brElement = elementclass type hrElement = elementclass type modElement =object..end
class type anchorElement =object..end
class type imageElement =object..end
class type objectElement =object..end
class type paramElement =object..end
class type areaElement =object..end
class type mapElement =object..end
class type scriptElement =object..end
class type tableCellElement =object..end
class type tableRowElement =object..end
class type tableColElement =object..end
class type tableSectionElement =object..end
class type tableCaptionElement = elementclass type tableElement =object..end
type context
val _2d_ : contexttype canvasPattern
class type canvasElement =object..end
class type canvasRenderingContext2D =object..end
class type canvasGradient =object..end
class type textMetrics =object..end
class type imageData =object..end
class type canvasPixelArray =object..end
val pixel_get : canvasPixelArray Js.t -> int -> intval pixel_set : canvasPixelArray Js.t -> int -> int -> unitclass type document =object..end
val document : document Js.tclass type location =object..end
class type history =object..end
class type undoManager =object..end
class type selection =object..end
type interval_id
type timeout_id
class type window =object..end
val window : window Js.tclass type frameSetElement =object..end
class type frameElement =object..end
class type iFrameElement =object..end
val no_handler : ('a, 'b) event_listenernull value).val handler : ((#event as 'a) Js.t -> bool Js.t) ->
('b, 'a Js.t) event_listenerval full_handler : ('a -> (#event as 'b) Js.t -> bool Js.t) ->
('a, 'b Js.t) event_listenerthis) is also passed as
argument to the function.val invoke_handler : ('a, 'b) event_listener -> 'a -> 'b -> bool Js.tval eventTarget : #event Js.t -> element Js.tval eventRelatedTarget : #mouseEvent Js.t -> element Js.t Js.optmodule Event:sig..end
mousedown, keypress, ...
type event_listener_id
val addEventListener : (#eventTarget as 'a) Js.t ->
'b Event.typ ->
('a Js.t, 'b) event_listener ->
bool Js.t -> event_listener_idaddEventListener DOM method, except that it returns
an id for removing the listener.val removeEventListener : event_listener_id -> unitval addMousewheelEventListener : #eventTarget Js.t ->
(mouseEvent Js.t -> dx:int -> dy:int -> bool Js.t) ->
bool Js.t -> event_listener_idval eventAbsolutePosition : #mouseEvent Js.t -> int * intval elementClientPosition : #element Js.t -> int * intval getDocumentScroll : unit -> int * intval createHtml : document Js.t -> htmlElement Js.tval createHead : document Js.t -> headElement Js.tval createLink : document Js.t -> linkElement Js.tval createTitle : document Js.t -> titleElement Js.tval createMeta : document Js.t -> metaElement Js.tval createBase : document Js.t -> baseElement Js.tval createStyle : document Js.t -> styleElement Js.tval createBody : document Js.t -> bodyElement Js.tval createForm : document Js.t -> formElement Js.tval createOptgroup : document Js.t -> optGroupElement Js.tval createOption : document Js.t -> optionElement Js.tval createSelect : ?_type:Js.js_string Js.t ->
?name:Js.js_string Js.t ->
document Js.t -> selectElement Js.tval createInput : ?_type:Js.js_string Js.t ->
?name:Js.js_string Js.t ->
document Js.t -> inputElement Js.tval createTextarea : ?_type:Js.js_string Js.t ->
?name:Js.js_string Js.t ->
document Js.t -> textAreaElement Js.tval createButton : ?_type:Js.js_string Js.t ->
?name:Js.js_string Js.t ->
document Js.t -> buttonElement Js.tval createLabel : document Js.t -> labelElement Js.tval createFieldset : document Js.t -> fieldSetElement Js.tval createLegend : document Js.t -> legendElement Js.tval createUl : document Js.t -> uListElement Js.tval createOl : document Js.t -> oListElement Js.tval createDl : document Js.t -> dListElement Js.tval createLi : document Js.t -> liElement Js.tval createDiv : document Js.t -> divElement Js.tval createP : document Js.t -> paragraphElement Js.tval createH1 : document Js.t -> headingElement Js.tval createH2 : document Js.t -> headingElement Js.tval createH3 : document Js.t -> headingElement Js.tval createH4 : document Js.t -> headingElement Js.tval createH5 : document Js.t -> headingElement Js.tval createH6 : document Js.t -> headingElement Js.tval createQ : document Js.t -> quoteElement Js.tval createBlockquote : document Js.t -> quoteElement Js.tval createPre : document Js.t -> preElement Js.tval createBr : document Js.t -> brElement Js.tval createHr : document Js.t -> hrElement Js.tval createIns : document Js.t -> modElement Js.tval createDel : document Js.t -> modElement Js.tval createA : document Js.t -> anchorElement Js.tval createImg : document Js.t -> imageElement Js.tval createObject : document Js.t -> objectElement Js.tval createParam : document Js.t -> paramElement Js.tval createMap : document Js.t -> mapElement Js.tval createArea : document Js.t -> areaElement Js.tval createScript : document Js.t -> scriptElement Js.tval createTable : document Js.t -> tableElement Js.tval createCaption : document Js.t -> tableCaptionElement Js.tval createCol : document Js.t -> tableColElement Js.tval createColgroup : document Js.t -> tableColElement Js.tval createThead : document Js.t -> tableSectionElement Js.tval createTfoot : document Js.t -> tableSectionElement Js.tval createTbody : document Js.t -> tableSectionElement Js.tval createTr : document Js.t -> tableRowElement Js.tval createTh : document Js.t -> tableCellElement Js.tval createTd : document Js.t -> tableCellElement Js.tval createSub : document Js.t -> element Js.tval createSup : document Js.t -> element Js.tval createSpan : document Js.t -> element Js.tval createTt : document Js.t -> element Js.tval createI : document Js.t -> element Js.tval createB : document Js.t -> element Js.tval createBig : document Js.t -> element Js.tval createSmall : document Js.t -> element Js.tval createEm : document Js.t -> element Js.tval createStrong : document Js.t -> element Js.tval createCite : document Js.t -> element Js.tval createDfn : document Js.t -> element Js.tval createCode : document Js.t -> element Js.tval createSamp : document Js.t -> element Js.tval createKbd : document Js.t -> element Js.tval createVar : document Js.t -> element Js.tval createAbbr : document Js.t -> element Js.tval createDd : document Js.t -> element Js.tval createDt : document Js.t -> element Js.tval createNoscript : document Js.t -> element Js.tval createAddress : document Js.t -> element Js.tval createFrameset : document Js.t -> frameSetElement Js.tval createFrame : document Js.t -> frameElement Js.tval createIframe : document Js.t -> iFrameElement Js.texception Canvas_not_available
val createCanvas : document Js.t -> canvasElement Js.tCanvas_not_available when canvas elements are not
supported by the browser.type taggedElement = val tagged : #element Js.t -> taggedElementval opt_tagged : #element Js.t Js.opt -> taggedElement optionmodule CoerceTo:sig..end