Kbase P13598: How to focus a field in WebSpeed when a page is opened?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  22/01/2003 |
|
Status: Unverified
GOAL:
How to focus a field in WebSpeed when a page is opened?
FACT(s) (Environment):
WebSpeed 3.x
FIX:
Generate JavaScript code which will foxus the desired field when the page is loaded.
Here is an example:
<html>
<head>
<script language="JavaScript">
function startForm() {
document.myform.myfield.focus();
}
</script>
</head>
<body onLoad="startForm()">
<form name=myform>
<!-- some fields here -->
<!-- this field is focused -->
MyField:<input type=text name=myfield>
<!-- other fields here -->
</form>
</body>
</html>