Thanks - in addition, I forgot to ask this earlier: the form creates a popup
window to display results from a user search. There is a script controlled
close button on the popup page - is it possible to have this close the popup
window, and then move the focus back to the form element?
"Janwillem Borleffs" <jw*@jwbfoto.demon.nl> wrote in message
news:3f***********************@news.euronet.nl...
"Andi B" <an**@theblacktower.freeserve.co.uk> schreef in bericht
news:bh**********@news8.svr.pol.co.uk... Greetings all, and many thanks for your helpful replies to my earlier
post today. I have another question now, if you would be so kind again:
How do I make it so that the cursor appears in a text field
automatically when a web page loads, or after data has been cleared from the field
with a clear button?
window.onload = function () { document.formName.fieldName.focus(); }
<form name="f" onreset="fieldName.focus()">
JW