I have made a clock to show current time with an ajax timer in an ajax update panel. The timer is set to one minute firing the tick event which puts the present time in a label. There are a number of text boxes on the page and when the clock updates the curser jumps to the default focused control and the page jumps to the top. This makes it difficult to fill the form without interuption. How can I maintain control focus and scroll position? I found an answer here Maintaining focus on ajax update panel after updating form but it's using javascript without full code (psuedo code as he wrote). I'm weak at javascript so can someone give me a more detailed solution or another alternative? Thank you.
Edit: Is there not a simple way to find which control has focus at postback time and reset focus to that control when the page reloads? Preferably in c# and if not in javascript.