Hi
Yes you can capture key events with javascript. Here's the code
<script>
//Detect Browser
var IE4 = (document.all && !document.getElementById) ? true : false;
var NS4 = (document.layers) ? true : false;
var IE5 = (document.all && document.getElementById) ? true : false;
var N6 = (document.getElementById && !document.all) ? true : false;
function ondelpress()
{
if (NS4 || N6)
{
if (evt.which==127)
{
//Do whatever you want to do when u press delete key here,I mean put your logic here
}
}
if (IE4 || IE5)
{
if (window.event.keyCode==127)
{
//Do whatever you want to do when u press delete key here,I mean put your logic here
}
}
}
</script>
Put a onKeyUp event handler to run this script whenevr u want to appropriately in your html like
onKeyUp="ondelpress()"
Lemme know if you have problems.
Badrinath Chebbi