Hi ivostoykov,
Thanks for quick response.
Tried same, but no luck.
Main Topics
Browse All TopicsHi experts,
I have a combo box, when i focus on combo box has to expand/ show all items.
Regards,
anjip
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If I understand your question, you want the SELECT box to resize to show all items while it has the focus, and return to its original size when it loses focus. The following HTML works in Firefox to do this:
<html>
<body>
<select id="myDrp" size="1" onfocus="expandMe(this)" onblur="restoreMe(this)" style="width:100px;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<script type="text/javascript">
function expandMe(obj) {
obj.size = obj.options.length;
}
function restoreMe(obj) {
obj.size = "1";
}
</script>
</body>
</html>
It would be helpful if you would explain the actual problem before requesting assistance.
First, my solution WILL work on any standard browser. Second, I don't believe you can force the combo box in front of another frame. You'll need to either reorganize the controls in your frame, if you can, or switch from an HTML select control to a DHTML menu, which is a different question altogether.
stanscott2,
I have frames in my application and combo box is placed in one of the frames. I had tried above mentioned code (similar) before posting this question. All i need is when i focus on combo box, it has to show all list items.
I cannot use DHTML in my application, since it is targeted for non-dhtml browser, Set top boxes.
Business Accounts
Answer for Membership
by: ivostoykovPosted on 2007-04-13 at 00:29:22ID: 18903891
Hello anjip,
try onfocus="this.click();
HTH
!i!