what about with dhtml or html? for all my list menus, i want to override the delete key, so that when it is pressed, it wont go back a page. is there another way to do it?
thanks
But the languages normally contained under the category of DHTML are not given the capability of catching or cancelling delete. And pure HTML can barely do anything.
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
}
}
}
Put a onKeyUp event handler to run this script whenevr u want to appropriately in your html like
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.