File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

Joined: Nov 08, 2001
Posts: 15385
Note: Remove the _ from on_click
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: onblur and onclick convergence
It's not a secret anymore!