I am working on asp.net 2.0. I want's a javascript function which i will put in the master page body section What I want's is that when ever a keypress is enter the focus will move to next control. Provided that if the focus is on button then i doesn't want this function to do any thing.