Reference
Ricohttp://openrico.org/
var kb = new HotKey;
kb.add(["j","2","down"], function(){rollto(c_pos + 1)});
kb.add(["k","8","up"] , function(){rollto(c_pos - 1)});
kb.add(["H","home"], function(){rollto(0)});
kb.add("pageup", function(){rollto(c_pos-3)});
kb.add("pagedown", function(){rollto(c_pos+3)});
<li>
<a onclick="this.parentNode.removeChild(this)" href="#">
Click me to delete me
</a>
</li>
<li>
<ul id="example">
<li>
<a href="/someurl">Click me to delete me</a>
</li>
</ul>
var myrules = {
'#example li' : function(el){
el.onclick = function(){
this.parentNode.removeChild(this);
}
}
};
Behaviour.register(myrules);