Index of values


(>>>)>) >> [Event_arrows]
(>>>|)>) >> [Event_arrows]
_2d_ [Dom_html]
_DOMMouseScroll [Dom_html.​Event]
_DOMMouseScroll [Dom_events.​Typ]
_false [Js]

Javascript false boolean.

_object [Dom_html.​CoerceTo]
_requestAnimationFrame [Dom_html]

Call the appropriate requestAnimationFrame method variant (depending on the navigator), or sleep for a short amount of time when there no such method is provided.

_true [Js]

Javascript true boolean.


A
a [Dom_html.​CoerceTo]
abort [XmlHttpRequest.​Event]
abort [File.​ReaderEvent]
addEventListener [File]

Add an event listener.

addEventListener [Dom_html]

Add an event listener.

addEventListener [Dom]

Add an event listener.

addMousewheelEventListener [Dom_html]

Add a mousewheel event listener.

append [Form]
appendChild [Dom]

The expression appendChild n c behave the same as n##appendChild(c) but avoid the need of coercing the different objects to node t.

area [Dom_html.​CoerceTo]
arguments [Url.​Current]

The arguments of the current url as an association list.

arr [Event_arrows]
array [Js]

Conversion of arrays from OCaml to Javascript.

arrayBuffer [Typed_array]
arrayBuffer [File.​CoerceTo]
array_empty [Js]

Constructor of Array objects.

array_get [Js]

Array access: array_get a i returns the element at index i of array a.

array_length [Js]

Constructor of Array objects.

array_set [Js]

Array update: array_set a i v puts v at index i in array a.

as_string [Url.​Current]

as_string is the original string representation of the current Url.

attr [Dom.​CoerceTo]

B
base [Dom_html.​CoerceTo]
bind [Js.​OPT]

Apply a function returning an optional value to an optional value

blockquote [Dom_html.​CoerceTo]
body [Dom_html.​CoerceTo]
bool [Js]

Conversion of booleans from OCaml to Javascript.

bounded_split [Regexp]

bounded_split r s i is like split r s except that the result's length is less than i.

br [Dom_html.​CoerceTo]
button [Dom_html.​CoerceTo]
buttonPressed [Dom_html]
bytestring [Js]

Conversion of strings of bytes from OCaml to Javascript.


C
call [Js.​Unsafe]

Performs a Javascript function call.

cancel [Event_arrows]
canvas [Dom_html.​CoerceTo]
caption [Dom_html.​CoerceTo]
case [Js.​OPT]

Pattern matching on optional values.

click [Event_arrows]
click [Dom_html.​Event]
click [Dom_events.​Typ]
clicks [Event_arrows]
coerce [Js.​Unsafe]

Unsafe coercion between to Javascript objects.

coerce [Js]

Apply a possibly failing coercion function.

coerce_opt [Js]

Apply a possibly failing coercion function.

col [Dom_html.​CoerceTo]
colgroup [Dom_html.​CoerceTo]
console [Firebug]
create [XmlHttpRequest]
createA [Dom_html]
createAbbr [Dom_html]
createAddress [Dom_html]
createArea [Dom_html]
createB [Dom_html]
createBase [Dom_html]
createBig [Dom_html]
createBlockquote [Dom_html]
createBody [Dom_html]
createBr [Dom_html]
createButton [Dom_html]
createCanvas [Dom_html]
createCaption [Dom_html]
createCite [Dom_html]
createCode [Dom_html]
createCol [Dom_html]
createColgroup [Dom_html]
createDd [Dom_html]
createDel [Dom_html]
createDfn [Dom_html]
createDiv [Dom_html]
createDl [Dom_html]
createDt [Dom_html]
createEm [Dom_html]
createFieldset [Dom_html]
createForm [Dom_html]
createFrame [Dom_html]
createFrameset [Dom_html]
createH1 [Dom_html]
createH2 [Dom_html]
createH3 [Dom_html]
createH4 [Dom_html]
createH5 [Dom_html]
createH6 [Dom_html]
createHead [Dom_html]
createHr [Dom_html]
createHtml [Dom_html]
createI [Dom_html]
createIframe [Dom_html]
createImg [Dom_html]
createInput [Dom_html]
createIns [Dom_html]
createKbd [Dom_html]
createLabel [Dom_html]
createLegend [Dom_html]
createLi [Dom_html]
createLink [Dom_html]
createMap [Dom_html]
createMeta [Dom_html]
createNoscript [Dom_html]
createObject [Dom_html]
createOl [Dom_html]
createOptgroup [Dom_html]
createOption [Dom_html]
createP [Dom_html]
createParam [Dom_html]
createPre [Dom_html]
createQ [Dom_html]
createSamp [Dom_html]
createScript [Dom_html]
createSelect [Dom_html]
createSmall [Dom_html]
createSpan [Dom_html]
createStrong [Dom_html]
createStyle [Dom_html]
createSub [Dom_html]
createSup [Dom_html]
createTable [Dom_html]
createTbody [Dom_html]
createTd [Dom_html]
createTextarea [Dom_html]
createTfoot [Dom_html]
createTh [Dom_html]
createThead [Dom_html]
createTitle [Dom_html]
createTr [Dom_html]
createTt [Dom_html]
createUl [Dom_html]
createVar [Dom_html]

D
date [Js]

The date constructor, as an object.

date_day [Js]

Constructor of Date objects: new date_fromTimeValue (y, m, d) returns a Date object corresponding to year y, month m and day d.

date_fromTimeValue [Js]

Constructor of Date objects: new date_fromTimeValue (t) returns a Date object initialized with the time value t.

date_hour [Js]

Constructor of Date objects: new date_fromTimeValue (y, m, d, h) returns a Date object corresponding to year y to hour h.

date_min [Js]

Constructor of Date objects: new date_fromTimeValue (y, m, d, h, m') returns a Date object corresponding to year y to minute m'.

date_month [Js]

Constructor of Date objects: new date_fromTimeValue (y, m) returns a Date object corresponding to year y and month m.

date_ms [Js]

Constructor of Date objects: new date_fromTimeValue (y, m, d, h, m', s, ms) returns a Date object corresponding to year y to millisecond ms.

date_now [Js]

Constructor of Date objects: new date_now () returns a Date object initialized with the current date.

date_sec [Js]

Constructor of Date objects: new date_fromTimeValue (y, m, d, h, m', s) returns a Date object corresponding to year y to second s.

dblclick [Event_arrows]
dblclick [Dom_html.​Event]
dblclick [Dom_events.​Typ]
dblclicks [Event_arrows]
decodeURI [Js]

Decode a URI: replace by the corresponding byte all escape sequences but the ones corresponding to a URI reserved character and convert the string from UTF-8 to UTF-16.

decodeURIComponent [Js]

Decode a URIComponent: replace all escape sequences by the corresponding byte and convert the string from UTF-8 to UTF-16.

decode_arguments [Url]

decode_arguments s parses s returning the sliced-diced association list.

def [Js]

Consider a value into a possibly undefined value.

default_http_port [Url]

The default port for Http communications (80).

default_https_port [Url]

The default port for Https communications (443).

del [Dom_html.​CoerceTo]
div [Dom_html.​CoerceTo]
dl [Dom_html.​CoerceTo]
document [Dom_html]

The current document

document_position_contained_by [Dom]
document_position_contains [Dom]
document_position_disconnected [Dom]
document_position_following [Dom]
document_position_implementation_specific [Dom]
document_position_preceding [Dom]
drag [Dom_html.​Event]
dragend [Dom_html.​Event]
dragenter [Dom_html.​Event]
dragleave [Dom_html.​Event]
dragover [Dom_html.​Event]
dragstart [Dom_html.​Event]
drop [Dom_html.​Event]

E
element [Dom_html.​CoerceTo]
element [Dom_html]

Coercion from a general DOM element to an HTML element.

element [Dom.​CoerceTo]
elementClientPosition [Dom_html]

Position of an element relative to the viewport

empty [Js.​OPT]

No value.

empty_form_contents [Form]
encodeURI [Js]

Encode a URI: convert the string to UTF-8 and replace all unsafe bytes by the corresponding escape sequence.

encodeURIComponent [Js]

Same as encodeURI, but also encode URI reserved characters.

encode_arguments [Url]

encode_arguments a expects a list of pair of values of the form (name,value) were name is the name of an argument and value it's associated value.

error [XmlHttpRequest.​Event]
error [File.​ReaderEvent]
escape [Js]

Escape a string: unsafe UTF-16 code points are replaced by 2-digit and 4-digit escape sequences.

eval_string [Js.​Unsafe]

Evaluate Javascript code

eventAbsolutePosition [Dom_html]

Returns the absolute position of the mouse pointer.

eventRelatedTarget [Dom_html]

Returns this event related target.

eventTarget [Dom_html]

see Dom.eventTarget

eventTarget [Dom]

Returns which object is the target of this event.


F
fieldset [Dom_html.​CoerceTo]
fileReader [File]
filename [File]

filename handles old firefox without name property

first [Event_arrows]

Behaves as the first element of the list to terminate

float [Js]

Conversion of OCaml floats to Javascript numbers.

float32Array [Typed_array]
float32Array_fromArray [Typed_array]
float32Array_fromBuffer [Typed_array]
float32Array_fromTypedArray [Typed_array]
float32Array_inBuffer [Typed_array]
float64Array [Typed_array]
float64Array_fromArray [Typed_array]
float64Array_fromBuffer [Typed_array]
float64Array_fromTypedArray [Typed_array]
float64Array_inBuffer [Typed_array]
float_of_number [Js]

Conversion of Javascript number objects to OCaml floats.

form [Dom_html.​CoerceTo]
formData [Form]
formData_form [Form]
form_elements [Form]
frame [Dom_html.​CoerceTo]
frameset [Dom_html.​CoerceTo]
from_string [Deriving_Json.​Json]
from_string [Deriving_Json]

from_string Json.t<ty> s safely unmarshall the JSON s into an OCaml value of type ty.

full_handler [Dom_html]

see Dom.full_handler

full_handler [Dom]

Create an event handler that invokes the provided function.

fun_call [Js.​Unsafe]

Performs a Javascript function call.


G
get [XmlHttpRequest]

get url makes an asynchronous request to the specified url

get [Url.​Current]

get () returns a value of type Url.​url with fields reflecting the state of the current Url.

get [Typed_array]
get [Js.​Unsafe]

Get the value of an object property.

get [Js.​OPT]

Get the value.

getContext [WebGL]
getDocumentScroll [Dom_html]

Viewport top/left position

get_form_contents [Form]
get_fragment [Url.​Current]

Because the fragment of the Url for the current document can change dynamically, we use a functional value here.

global_replace [Regexp]

global_replace r s by replaces all of the matches of r in s by by.


H
h1 [Dom_html.​CoerceTo]
h2 [Dom_html.​CoerceTo]
h3 [Dom_html.​CoerceTo]
h4 [Dom_html.​CoerceTo]
h5 [Dom_html.​CoerceTo]
h6 [Dom_html.​CoerceTo]
handler [Dom_html]

see Dom.handler

handler [Dom]

Create an event handler that invokes the provided function.

head [Dom_html.​CoerceTo]
host [Url.​Current]

The host part of the current url.

hr [Dom_html.​CoerceTo]
hsl [CSS.​Color]

build a color from the values of hue, saturation, and lightness channels.

html [Dom_html.​CoerceTo]

I
iframe [Dom_html.​CoerceTo]
img [Dom_html.​CoerceTo]
init_lexer [Deriving_Json_lexer]

Create a fresh lexbuf record.

inject [Js.​Unsafe]

Coercion to top type.

input [Dom_html.​CoerceTo]
ins [Dom_html.​CoerceTo]
insertBefore [Dom]

insertBefore n c p inserts node c as child of node n, just before node p, or as last child if p is empty.

instanceof [Js]

Tests whether a Javascript object is an instance of a given class.

int16Array [Typed_array]
int16Array_fromArray [Typed_array]
int16Array_fromBuffer [Typed_array]
int16Array_fromTypedArray [Typed_array]
int16Array_inBuffer [Typed_array]
int32Array [Typed_array]
int32Array_fromArray [Typed_array]
int32Array_fromBuffer [Typed_array]
int32Array_fromTypedArray [Typed_array]
int32Array_inBuffer [Typed_array]
int8Array [Typed_array]
int8Array_fromArray [Typed_array]
int8Array_fromBuffer [Typed_array]
int8Array_fromTypedArray [Typed_array]
int8Array_inBuffer [Typed_array]
invoke_handler [Dom_html]

see Dom.invoke_handler

invoke_handler [Dom]

Invoke an existing handler.

iter [Js.​OPT]

Apply a function to an optional value if it is available.

iter [Event_arrows]

Behaves as one element of the list, then another one, etc.


J
js [CSS.​Angle]
js [CSS.​Length]
js [CSS.​Color]

Projection from OCaml to Js.

js_t_of_js_string [CSS.​Color]

Checks the well-formedness of a string or fails with Invalid_argument


K
keyboardEvent [Dom_html.​CoerceTo]
keydown [Event_arrows]
keydown [Dom_html.​Event]
keydown [Dom_events.​Typ]
keydowns [Event_arrows]
keypress [Event_arrows]
keypress [Dom_html.​Event]
keypress [Dom_events.​Typ]
keypresses [Event_arrows]
keyup [Event_arrows]
keyup [Dom_html.​Event]
keyup [Dom_events.​Typ]
keyups [Event_arrows]

L
label [Dom_html.​CoerceTo]
legend [Dom_html.​CoerceTo]
li [Dom_html.​CoerceTo]
link [Dom_html.​CoerceTo]
list_of_nodeList [Dom]
listen [Dom_events]
load [XmlHttpRequest.​Event]
load [File.​ReaderEvent]
loadend [XmlHttpRequest.​Event]
loadend [File.​ReaderEvent]
loadstart [XmlHttpRequest.​Event]
loadstart [File.​ReaderEvent]
lwt_arr [Event_arrows]

M
make [Dom_html.​Event]
make [Dom.​Event]
map [Js.​OPT]

Apply a function to an optional value if it is available.

map [Dom_html.​CoerceTo]
match_result [Js]

Convert a match result handle into a MatchResult object.

matched_group [Regexp]

matched_group r i is the ith group matched.

matched_string [Regexp]

matched_string r return the exact substring that matched when evaluating r.

math [Js]

The Math object

meta [Dom_html.​CoerceTo]
meth_call [Js.​Unsafe]

Performs a Javascript method call.

ml [CSS.​Angle]
ml [CSS.​Length]
ml [CSS.​Color]

Projection from Js to OCaml.

mouseEvent [Dom_html.​CoerceTo]
mouseScrollEvent [Dom_html.​CoerceTo]
mousedown [Event_arrows]
mousedown [Dom_html.​Event]
mousedown [Dom_events.​Typ]
mousedowns [Event_arrows]
mousemove [Event_arrows]
mousemove [Dom_html.​Event]
mousemove [Dom_events.​Typ]
mousemoves [Event_arrows]
mouseout [Event_arrows]
mouseout [Dom_html.​Event]
mouseout [Dom_events.​Typ]
mouseouts [Event_arrows]
mouseover [Event_arrows]
mouseover [Dom_html.​Event]
mouseover [Dom_events.​Typ]
mouseovers [Event_arrows]
mouseup [Event_arrows]
mouseup [Dom_html.​Event]
mouseup [Dom_events.​Typ]
mouseups [Event_arrows]
mousewheel [Dom_html.​Event]
mousewheel [Dom_events.​Typ]

N
new_obj [Js.​Unsafe]

Create a Javascript object.

no_handler [Dom_html]

see Dom.no_handler

no_handler [Dom]

Void event handler (Javascript null value).

nodeType [Dom]
null [Js]

The null value.

number_of_float [Js]

Conversion of OCaml floats to Javascript number objects.


O
ol [Dom_html.​CoerceTo]
opt_tagged [Dom_html]
opt_taggedEvent [Dom_html]
optgroup [Dom_html.​CoerceTo]
option [Js.​OPT]

Convert option type.

option [Dom_html.​CoerceTo]
output [Json]

Marshall any OCaml value into this JSON representation.


P
p [Dom_html.​CoerceTo]
param [Dom_html.​CoerceTo]
path [Url.​Current]

The path of the current url as a list of small string.

path_of_path_string [Url]

path_of_path_string s splits s on each "/" character.

path_string [Url.​Current]

The path of the current url as one long string.

perform [XmlHttpRequest]

perform is the same as XmlHttpRequest.​perform_raw_url except that the Url argument has type Url.​url.

perform_raw_url [XmlHttpRequest]

perform_raw_url ?headers ?content_type ?post_args ?get_args ?form_arg url makes an asynchronous request to the specified url with specified options.

pixel_get [Dom_html]
pixel_set [Dom_html]
popStateEvent [Dom_html.​CoerceTo]
port [Url.​Current]

The port of the current url.

post_form_contents [Form]
pre [Dom_html.​CoerceTo]
progress [XmlHttpRequest.​Event]
progress [File.​ReaderEvent]
pure_expr [Js.​Unsafe]

Asserts that an expression is pure, and can therefore be optimized away by the compiler if unused.


Q
q [Dom_html.​CoerceTo]
quote [Regexp]

Escapes characters with special meaning in the regexp context.


R
read [Deriving_Json.​Json]
readAsBinaryString [File]
readAsDataURL [File]
readAsText [File]
readAsText_withEncoding [File]
read_bounded_int [Deriving_Json_lexer]
read_case [Deriving_Json_lexer]
read_comma [Deriving_Json_lexer]
read_comma_or_rbracket [Deriving_Json_lexer]
read_int [Deriving_Json_lexer]
read_int32 [Deriving_Json_lexer]
read_int64 [Deriving_Json_lexer]
read_lbracket [Deriving_Json_lexer]
read_number [Deriving_Json_lexer]
read_rbracket [Deriving_Json_lexer]
read_string [Deriving_Json_lexer]
read_vcase [Deriving_Json_lexer]
readystatechange [XmlHttpRequest.​Event]
regExp [Js]

Constructor of RegExp objects.

regExp_copy [Js]

Constructor of RegExp objects.

regExp_withFlags [Js]

Constructor of RegExp objects.

regexp [Regexp]

Simple regexp constructor.

regexp_string [Regexp]

regexp_string s creates a regexp matching the exact string s.

removeChild [Dom]

The expression removeChild n c behave the same as n##removeChild(c) but avoid the need of coercing the different objects to node t.

removeEventListener [Dom_html]

Remove the given event listener.

removeEventListener [Dom]

Remove the given event listener.

replaceChild [Dom]

The expression replaceChild n c p behave the same as n##replaceChild(c, p) but avoid the need of coercing the different objects to node t.

replace_first [Regexp]

replace_first r s by replaces the first match of r in s by by.

return [Js.​OPT]

Consider a value as an optional value.

rgb [CSS.​Color]

build a color from the values of red, green, and blue channels.

rgb_of_name [CSS.​Color]

Converts a color name into three integers representing the Red, Green and Blue channels.

run [Event_arrows]

S
script [Dom_html.​CoerceTo]
search [Regexp]

search r s i evaluates to the index of the match and the match result or None if s (starting from i) doesn't match r.

select [Dom_html.​CoerceTo]
set [Url.​Current]

set u replaces the current Url for u.

set [Typed_array]
set [Js.​Unsafe]

Set an object property.

set_fragment [Url.​Current]

set_fragment s replaces the current fragment by s.

sleep [Lwt_js]

sleep d is a threads which remain suspended for d seconds and then terminates.

some [Js]

Consider a value into a possibly null value.

split [Regexp]

split r s splits the string s erasing matches with r.

stopPropagation [Dom_html]
stop_listen [Dom_events]
str_array [Js]

Convert an opaque string_array t object into an array of string.

string [Js]

The string constructor, as an object.

string [File.​CoerceTo]
string_match [Regexp]

string_match r s i matches the string s starting from the ith character.

string_of_name [CSS.​Color]

Gives the string equivalent of the argument.

string_of_t [CSS.​Angle]
string_of_t [CSS.​Length]
string_of_t [CSS.​Color]

Convert to a string representation (for debugging purpose mainly).

string_of_url [Url]

string_of_url u returns a valid string representation of u.

style [Dom_html.​CoerceTo]

T
t [Deriving_Json.​Json]
table [Dom_html.​CoerceTo]
tagged [Dom_html]
taggedEvent [Dom_html]
tbody [Dom_html.​CoerceTo]
td [Dom_html.​CoerceTo]
test [Js.​OPT]

Returns true if a value is available, false otherwise.

text [Dom.​CoerceTo]
textarea [Dom_html.​CoerceTo]
tfoot [Dom_html.​CoerceTo]
th [Dom_html.​CoerceTo]
thead [Dom_html.​CoerceTo]
timeout [XmlHttpRequest.​Event]
title [Dom_html.​CoerceTo]
to_array [Js]

Conversion of arrays from Javascript to OCaml.

to_bool [Js]

Conversion of booleans from Javascript to OCaml.

to_bytestring [Js]

Conversion of strings of bytes from Javascript to OCaml.

to_float [Js]

Conversion of Javascript numbers to OCaml floats.

to_option [Js.​OPT]

Convert to option type.

to_string [Deriving_Json.​Json]
to_string [Deriving_Json]

to_string Json.t<ty> v marshall the v of type ty to a JSON string.

to_string [Js]

Conversion of strings from Javascript to OCaml.

touchcancel [Dom_html.​Event]
touchend [Dom_html.​Event]
touchmove [Dom_html.​Event]
touchstart [Dom_html.​Event]
tr [Dom_html.​CoerceTo]
typeof [Js]

Returns the type of a Javascript object.


U
ul [Dom_html.​CoerceTo]
undefined [Js]

The undefined value

unescape [Js]

Unescape a string: 2-digit and 4-digit escape sequences are replaced by the corresponding UTF-16 code point.

unsafe_input [Json]

Unmarshall a string in JSON format as an OCaml value (unsafe but fast !).

url_of_string [Url]

url_of_string s parses s and builds a value of type url if s is not a valid url string, it returns None.

urldecode [Url]

urldecode s swaps percent encoding characters for their usual representation.

urlencode [Url]

urlencode ?with_plus s replace characters for their percent encoding representation.


V
variable [Js.​Unsafe]

Access a Javascript variable.


W
webglcontextcreationerror [WebGL.​Event]
webglcontextlost [WebGL.​Event]
webglcontextrestored [WebGL.​Event]
wheelEvent [Dom_html.​CoerceTo]
window [Dom_html]

The current window

wrap_callback [Js]

Wrap an OCaml function so that it can be invoked from Javascript.

wrap_meth_callback [Js]

Wrap an OCaml function so that it can be invoked from Javascript.

write [Deriving_Json.​Json]

Y
yield [Lwt_js]

yield () is a threads which suspends itself and then resumes as soon as possible and terminates.