:: Forum >>
remove row when pressed DEL
I want to remove a row when I press del. The best way to do so is to set "display" on "none", but I can't find out how to access the row only.
I've got this atm:
obj.setEvent("onkeydown", readChar);
function readChar(e) {
var key = e.keyCode;
switch(key) {
case 46:
answer = confirm("Are you sure ?");
if (answer) {
e.setStyle("display", "none");
}
break;
}
}
document.write(obj);
Sunday, November 6, 2005
This topic is archived.
Back to support forum
Forum search