The Widget system uses much the same concept as the conduit system: HTML comments... except that the Widget comments are after the element they refer to, rather than before it (as in the case of columns and conditions) E.g. /code <input type="text" name="something">
/endcode
In this example, the text input box is a Widget, which accepts numeric input only, and when Enter is pressed, the Javascript function inputAction(target) gets called (where target is the input element.