Hi
document.forms["FORMNAME"].ELEMENTNAME.focus();
Or
if(document.getElementById)
{
var e = document.getElementById("ELEMENTID");
if(e != null ) e.focus();
}
And you should do this onload event ( Client side )
More info
http://msdn.microsoft.com/library/de...ence_entry.asp
--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"IMRAN SAROIA" <im*************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi!
Please advise how to set focus on Windows and Web forms please.
I have tried
formp.Control..focus()
But it does not appear applicable.
Please advise!
Imran