This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Site Ratings & Reviews > August 2004 > Re: Problem with onmouseup event in IE





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Problem with onmouseup event in IE
Ben Measures

2004-08-12, 4:18 am

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.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews