Mercurial > urweb
diff doc/manual.tex @ 1559:df6a7a22760a
New Basis functions: preventDefault and stopPropagation (code contributed by Vladimir Shabanov)
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 11 Sep 2011 14:14:49 -0400 |
parents | e1f5d9c4cc20 |
children | da11f7b18067 |
line wrap: on
line diff
--- a/doc/manual.tex Sun Sep 11 11:37:26 2011 -0400 +++ b/doc/manual.tex Sun Sep 11 14:14:49 2011 -0400 @@ -1983,6 +1983,13 @@ \mt{val} \; \mt{onMouseup} : \mt{transaction} \; \mt{unit} \to \mt{transaction} \; \mt{unit} \end{array}$$ +Versions of standard JavaScript functions are provided that event handlers may call to mask default handling or prevent bubbling of events up to parent DOM nodes, respectively. + +$$\begin{array}{l} + \mt{val} \; \mt{preventDefault} : \mt{transaction} \; \mt{unit} \\ + \mt{val} \; \mt{stopPropagation} : \mt{transaction} \; \mt{unit} +\end{array}$$ + \subsubsection{Node IDs} There is an abstract type of node IDs that may be assigned to \cd{id} attributes of most HTML tags.