Hi,


Once I fill contact form details and click submit button,It will redirect to next page on that page menubar the backspace button should be disable.

I need javascript for this process....................

Member Avatar for rajarajan2017
onkeydown="return isNumberKey(event,this)" 
 
function isNumberKey(evt, obj) 
{ 
 
    var charCode = (evt.which) ? evt.which : evt.keyCode 
    if (charCode == 8 || charCode == 46) return false; 
 
    return true; 
}

Write onkeydown in your body section and not sure about non-IE browsers

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.