First: a problem with your HTML. You use short syntax for A- this means that the text is not actually part of the content A. Many browsers do not like the short syntax for tags Aanyway - not your fault, but our work is more tolerant than browsers.
Here's the adjusted version:
<a tabindex="7" style="cursor: pointer;" class="button" id="saveTocAddNew" onClick="saveTdsAddNew();"><span>Save & Add Another</span></a>
Depending on the browser and DOCTYPE, it is important whether the event name is lowercase or not. Just looking for something.
, onclick Enter - . pagedown. , A , Enter, , . :
function addNewKeys(event) {
if(!event) var event = window.event;
if(event.keyCode === 32) {
saveTdsAddNew(event);
}
return true;
}
( onkeypress A.)
, event saveTdsAddNew. , , event , . event , /, ..