Is it possible to set multiple functions for one onkeypress event
<p>I have this:</p>

<pre><code>signin_input.onkeypress = function()
{
    label.style.opacity = 0;
}
</code></pre>

<p>but sometimes I want to run additional code so I overwrite it with this:</p>

<pre><code>signin_input.onkeypress = function( event ) 
{
    signin_label.style.opacity = 0; // just add in previous function here
    if( event.keyCode === 13 )
    {
        new ControlType( 'signin' ).invoke();
        return false; 
    }
}
</code></pre>

<p>and just include the one line from the old function in the new function.</p>

<p>However, this is a bit inefficient as I write to onkeypress twice.</p>

<p>Is there a way to have both run.  Is there some sort of internal JavaScript construct that would allow this.</p>
