A function code that points to the next location by pressing enter

  • 2020-03-30 02:21:48
  • OfStack


function tofocus(itemname)    //Press enter to set the next position
        { 
            var a 
            a=eval("document.vouch."+itemname) 
            a.focus() 
        } 
 Used in a control onkeypress="javascrip:if(window.event.keyCode==13){tofocus('nextformname')} Extract the next control name    

Related articles: