One great convenience for folks who do data entry is shortcut keys.
Interface designers will sometimes build underlines into their designs to imply short-cut keys.
These can be built into form inputs using the ACCESSKEY property of inputs.
Since I can't always control whether the HTML author includes a specific letter, or even any
underlined letters, it's nice to be able to dynamically ask for
them and include that dynamic code as a library component so its
HTML underlined letter within an object (a button in this case).
(Clicking the button below show alert the underlined character(s))
What about more than one underline? The script can find these as well.
Here's the function the buttons are calling. This contains a simple regex pattern to look for HTML underlines: