fmlib_js
Library for easy compilation from ocaml to javascript
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val href : t -> string
The full url string of the location.
val protocol : t -> string
The protocol i.e. either http
or https
.
val host : t -> string
The host name i.e. the part of the authority before the port.
val port : t -> string
Port number as a string. If there is no explicit port, then the empty string is returned.
val pathname : t -> string
An initial '/' followed by the path of the url of the location (or an empty string if there is no path).
val search : t -> string
The query string.
val hash : t -> string
The fragment part of the url.
val assign : string -> t -> unit
assign url window
Load the url
.
val reload : t -> unit
Reload the current page.