Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Ie 6 Onblur Event Problem

Recommended Posts

Hello!

I am creating a menu using some DHTML. Everything is working except I can't get the thing to hide when the user selects something outside of the menu.

There is a catch, most of the code is generated via a cgi script and I cannot modify it. So, I don't have access to the body tag.

The best work-around I could figure out was to use the "onblur" event of a div/span tag, however, it never seems to fire.
Here is my code

<div id='testDiv' onblur='alert("test");' tabIndex='1'><table><tr><td>Menu Item 1</td></tr><tr><td>Menu Item 2</td></tr></table></div>
Does anyone know how I can get that onblur event to fire?

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.