Hi,
I am having a text box in a form in HTML, I tried to focus the text box
function a(){
document.formname.textboxId.focus() // this function works in IE but throws script error
document.formname.textboxId.onfocus() // text box is not selected and no script error.
}