Hi,
I am using code to set focus on the field
var elements = document.getElementById('menumain').childNodes;
elements[1].focus();
It is working fine in Fire fox but not in Internet Explorer
can anybody help please?
Thanks
Hi,
I am using code to set focus on the field
var elements = document.getElementById('menumain').childNodes;
elements[1].focus();
It is working fine in Fire fox but not in Internet Explorer
can anybody help please?
Thanks
Remove the ".childNodes" attribute; Internet Explorer does not support it.
And instead of calling your field through an object, give the actual object that you want focused an ID, than call it like this:
You have the correct method, but the incorrect way of calling the method.Code:document.getElementById("myobject").focus();
I am not sure but i think hat you have you wrong method of setting the focus. try the below code. I think it might help you in internet explorer
document.getElementById("myobject").focus();
this can be done in asp.net and vb.net by using the any asp.net control's focus property.
you have two option for that nikon......
use asp.net or use visual basic (vb.net)....
by using the focus property you can do that.....
![]()
Bookmarks