John Smith wrote:
> In the code snippet below, I tried to allow the user to choose a page to
> view by selecting an item from a dropdown list.
> It *seems* that on IE, when the user highlights an item on a
> dropdown list and then let go of the mouse button, no onmouseup event is
> generated.
>
> <select>
> <option value="option1" onmouseup="java script:parent.frames['main'].
location.href='page1.htm'">Page 1</option>
> <option value="option2" onmouseup="java script:parent.frames['main'].
location.href='page2.htm'">Page 2</option>
> </select>
Why don't you use onchange on the select instead?
Something like:
<select onchange="changePage(this)">
<option value="page1.htm">Page1</option>
<option value="page2.htm">Page1</option>
</select>
Hth,
--
Ben M.
|