Funtion after form loses focus

G

Gem_man

Hi,

I am wanting to run a function AFTER a text field LOSES focus.

is there an opposite of onFocus?

Many thanks if anyone can help

regards
Gem_man
 
G

Gem_man

Actually, I think I have found that onChange does it.

I found this in the hope that the function would run each time anything
changed in the field i.e. someone typed something.... anything

Is there any script that could do this?
Basically I want the script to monitor any changes in that field.

Again, thanks for any assistance

Regards
Gem_man
 
S

Stefan B Rusynko

onChange() only fires if anything is changed in a field
- so in text boxes it fire for every letter typed
onBlur() is the opposite of onfocus()
- fires when field is left

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Actually, I think I have found that onChange does it.
|
| I found this in the hope that the function would run each time anything
| changed in the field i.e. someone typed something.... anything
|
| Is there any script that could do this?
| Basically I want the script to monitor any changes in that field.
|
| Again, thanks for any assistance
|
| Regards
| Gem_man
|
| "Gem_man" wrote:
|
| > Hi,
| >
| > I am wanting to run a function AFTER a text field LOSES focus.
| >
| > is there an opposite of onFocus?
| >
| > Many thanks if anyone can help
| >
| > regards
| > Gem_man
 

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

Top