Setting Focus

A

Andi B

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?

Regards
 
A

Andi B

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?
 
J

Janwillem Borleffs

Andi B said:
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?

Shure, just use:

opener.document.formName.fieldName.focus();

In your close function

JW
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,206
Latest member
Zenden

Latest Threads

Top