On an xpage in an edit box I would like to fire some ssjs (set scopevariable, call a function in a managed bean, perform a partial refresh) when the backspace key is used.
in csjs I could detect it:
$('html').keyup(function(e){if(e.keyCode == 8)alert('backspace trapped')})
How do I do this is SSJS?