event.preventDefault(); //or event.returnValue = false; //and its opposite(standard) : event.returnValue = true;