Forum Moderators: open

Message Too Old, No Replies

Focus Select Menu

Focus Select Menu

         

pesz1

12:20 am on Feb 18, 2005 (gmt 0)

10+ Year Member



Hello;
I have a javascript jump menu to a popup window. So, the user makes a selection from the drop down menu, the window pops up fine, then they close the window. The problem is, if they want to make that same selection from the drop down menu, the window doesnt pop up. They have to select a different choice, then reselect their original option for the window to open. Is there any way when the user chooses something from the drop down menu, it does a Focus to the first choice of the menu which is a dummy entry?

So wordy, I apologize...

rocknbil

1:47 am on Feb 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<select name="whatever" onChange="yourWindowFunction(this);">

.....

</select>

function yourWindowFunction(selectObject) {

... do your window thing then .. .

selectObject.selectedIndex = 0;

}

That should work. :-)

pesz1

2:16 pm on Feb 18, 2005 (gmt 0)

10+ Year Member



Your a GOD!
thanks

rocknbil

5:03 pm on Feb 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hardly. LOL!