Utility Module
The KeymanWeb Utility Function module is exposed to the developer as
window.keyman.util.
addStyleSheetFunction- Add or override default On-Screen Keyboard styles.
alertFunction- Customized alert window.
attachDOMEventFunction- Attach user-defined event handler for any DOM event for an element.
createElementFunction- Create an unselectable HTML element for the KeymanWeb On-Screen keyboard and User Interfaces.
detachDOMEventFunction- Detach DOM event handler from element to prevent memory leaks.
getAbsoluteFunction- Get the absolute position of an element.
getAbsoluteXFunction- Get the absolute y-coordinate of an element.
getAbsoluteYFunction- Get the absolute y-coordinate of an element.
getIEVersionFunction- Get browser version (where browser-dependent code needed).
getOptionFunction- Get a KeymanWeb, On-Screen Keyboard or User Interface option value.
linkStyleSheetFunction- Add a reference to an external stylesheet file.
isTouchDeviceFunction- Allow external callers (such as UIs) to detect if the active device is touch sensitive.
loadCookieFunction- Get a document cookie, or an array of all document cookies.
rgbaFunction- Browser-independent alpha-channel management.
removeStyleSheetFunction- Remove user-defined style sheet.
saveCookieFunction- Save document variables as a cookie.
setOptionFunction- Set a KeymanWeb, On-Screen Keyboard or User Interface option value.
toFloatFunction- Floating conversion with default.
toNumberFunction- Integer conversion with default.
toNzStringFunction- Returns default string value if argument is null, false, an empty string, or undefined.


