How to change focus on page load in .net?

Gunslinger08

Lifer
Nov 18, 2001
13,234
2
81
So I want to change the focus to a specific textbox if another one is filled after a postback. How can I do this? I figure I'll have to use javascript, but I'm not sure what exactly.
 

homercles337

Diamond Member
Dec 29, 2004
6,340
3
71
Yes, its javascript. I just did a google (use the words, onload, focus, javsscript) and found what you need in like two seconds.