March 2019
Intermediate to advanced
208 pages
5h 11m
English
Here are the signatures of the DOM access functions we’ve used in this chapter, plus a couple that you might find useful in working with the DOM:
Given a string, this function returns a DOM element wrapped in Some(), or None if the ID isn’t found.
This function takes a DOM element and returns it in a form that can have an event attached to it.
This function takes an event name as a string and a handler function to call when the event occurs. This function returns unit. The event handler (the second ...
Read now
Unlock full access