snippets
forward an element as a sender
waiting
- Forward an element to another function in the
senderposition (i.e. the second argument) - This allows initialization functions to run other functions that require a sender and would otherwise require a click (or some other interaction) on the sender element on the page.
- For example, in this snippet, `b = { init: "initForwardSender" } simulates clicking the button so the time gets updated when the page loads.
html
waiting
Update Time
javascript
;