aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes onblur and onclick convergence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onblur and onclick convergence" Watch "onblur and onclick convergence" New topic
Author

onblur and onclick convergence

Michael McNally
Ranch Hand

Joined: Aug 22, 2002
Posts: 53
1)I have a BUTTON which has an onblur method that hides a TR which has an onclick method.
2)When the button is blurred, the TR disappears.
If you trigger the onclick method of the TR,
the TR's onclick method isn't called because the onblur method of the button has acted first.
Please help.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
on_click="document.FormName.ButtonName.focus();TheTRFunction();"
Note: Remove the _ from on_click
Eric
Michael McNally
Ranch Hand

Joined: Aug 22, 2002
Posts: 53
thats great. but how can i write an if blur statement. i have tried:
if ( document.formName.buttonName.blur )
{
// my statement goes here
}
this doesnt seem to work. I cant seem to figure out the propertyName for when an HTMLElement has been blurred.
 
Don't get me started about those stupid light bulbs.
 
subject: onblur and onclick convergence