public void setOnKeyPress ( String onKeyPress ) { _anchorState . registerAttribute ( AbstractHtmlState . ATTR_JAVASCRIPT , HtmlConstants . ONKEYPRESS , onKeyPress ) ; }
Sets the onKeyPress JavaScript event for the HTML anchor .