Hi,

I need to have a forced focus on a password field which is in an embedded JSP (<%@ include file="password.jsp" %>, this password.jsp doesnt has any body or form tag). I am facing some wierd issues in achieving as desired. The below code (in the parent JSP) DOESNT WORKS:

window.onload = function()
{
document.<formname>.<fieldname>.focus()
}
here <fieldname> is in password.jsp and not the parent jsp

when changed as below IT WORKS(obviously with an alert box which i dont want):

window.onload = function()
{
alert("hi")
document.<formname>.<fieldname>.focus()
}

i cannot use <body onLoad>
due to third party javascript component constraints

Help please...