Kbase P15535: How to set focus on WEB UI?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  29/01/2003 |
|
Status: Unverified
GOAL:
How to set focus on WEB UI?
FACT(s) (Environment):
Webspeed 3.1x
FIX:
Use onLoad event for HTML BODY tag and call "focus" method with JavaScript.
See example bellow:
<html>
<head>
<script language=javascript>
function setFocus()
{
document.fmain.field2.focus(true);
}
</script>
</head>
<body onLoad="setFocus();">
<form name=fmain>
Field 1<input type=text size=20 name=field1><br>
Field 2<input type=text size=20 name=field2><br>
Field 3<input type=text size=20 name=field3><br>
</form>
</body>
</html>