setting field focus explicitly

setting field focus explicitly

Hi,

Is there a way to explicitly set the focus to a specific field upon loading a page, or when doing form validation ?

Thanks,

Zainul.