Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Z] Cursor start position

Quote Reply
Re: [Z] Cursor start position In reply to
Sure. Just put this between the <head> ... </head>

Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function placeFocus() {
if (document.forms.length > 0) {
var field = document.forms[0];
for (i = 0; i < field.length; i++) {
if ((field.elements.type == "text") || (field.elements.type == "textarea") || (field.elements.type.toString().charAt(0) == "s")) {
document.forms[0].elements.focus();
break;
}
}
}
}
// End -->
</script>

Then this:

Code:
<body onload="placeFocus()">

--------------------------------
Privacy Software
Subject Author Views Date
Thread Cursor start position Z 2118 Feb 8, 2004, 4:29 PM
Post Re: [Z] Cursor start position
BLOOD 1967 Feb 9, 2004, 10:50 AM