View Full Version : Is this a browser issue?

04-10-2007, 09:24 PM
Hello all. I am using the following code to automatically widen a select box, but in some cases a user has to click on it up to three times to get it to stay open. At first I thought it was a monitor resolution issue, but determined that it wasn't. Could it be the browser version?

Here is the code:

<select name="selCase" id="selCase" style="width: 100px; font:12px;" onmousedown="this.style.width='' " onchange="this.style.width='100px' " >

Thanks in advance,


04-11-2007, 09:17 PM
Yes, it is.

This works fine in Firefox, but badly in IE (6 and 7).

Thought you should know!

04-11-2007, 09:28 PM
That's odd. I know it works fine in some versions of IE6 and not in others, and so far it is working fine in IE7 (for me at least). Either way, I just rearranged my tables to avoid the problems.



04-12-2007, 09:30 AM
Try using onfocus instead of onmousedown or even maybe onclick.

04-12-2007, 04:41 PM
Been there, done that. :) Nothing seemed to work, and since they are on a restricted network, I can't assume that they will upgrade anytime soon.

Thanks anyway,