• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

onblur and onclick convergence

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
on_click="document.FormName.ButtonName.focus();TheTRFunction();"
Note: Remove the _ from on_click
Eric
 
Michael McNally
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic