package fmlib_js

  1. Overview
  2. Docs
Library for easy compilation from ocaml to javascript

Install

Dune Dependency

Authors

Maintainers

Sources

0.5.11.tar.gz
sha256=987144e79a5ab8544a9cac669284ef7610a70c3362d4f55e5d27e4f33b49a1b9

doc/fmlib_js/Fmlib_js/Dom/index.html

Module Fmlib_js.Dom

The content of a browser window.

Hierarchy:

    Document                        Text node

    Element                         Character data

                    Node

                    Event Target

I.e. a document is an element which is a node which is an event target. A text node is an event target as well.

Each document has a body element which is the root of the visible document.

Nodes can form a tree. I.e. each node has an optional parent, an optional first child and an optional sibling. There are methods to add and remove children from a node.

Note: Use the code only within a browser window. Never in node and never in a worker thread.

module Node : sig ... end

A node in the dom tree.

module Style : sig ... end

Inline style of a document element.

module Element : sig ... end

Element node.

module Document : sig ... end
module Location : sig ... end

Module representing location.

module History : sig ... end

Module representing the browser history.

module Window : sig ... end

Module representing a browser window.

OCaml

Innovation. Community. Security.