A
amirkarger
I have a simple "quickbrowse" menu that does this:
<form>
<select name="quickbrowse" onchange="go(this)">
<option selected value="">go to a tool...</option>
<option value="#tool1">Great tool #1</option>
<option value="#tool2">Great tool #2</option>
<option value="#tool3">Great tool #3</option>
</select>
</form>
It calls this function:
function go(selection) {
var place = selection.value
// Ignore empty selection (default "pick a tool" choice)
if (place) {
location=place;
}
}
It works beautifully. However, in IE, after it goes to the new
location, if I turn the scroll wheel before clicking on anything, the
scroll wheel selects different options from the <select>, which makes
the browser jump to a totally different tool (section of the page). In
Firefox, it (correctly) scrolls up and down the text at the tool I had
originally selected.
I tried putting a document.focus() or a selection.blur() into the go
function, but they didn't seem to help.
Any thoughts?
Thanks,
-Amir Karger
<form>
<select name="quickbrowse" onchange="go(this)">
<option selected value="">go to a tool...</option>
<option value="#tool1">Great tool #1</option>
<option value="#tool2">Great tool #2</option>
<option value="#tool3">Great tool #3</option>
</select>
</form>
It calls this function:
function go(selection) {
var place = selection.value
// Ignore empty selection (default "pick a tool" choice)
if (place) {
location=place;
}
}
It works beautifully. However, in IE, after it goes to the new
location, if I turn the scroll wheel before clicking on anything, the
scroll wheel selects different options from the <select>, which makes
the browser jump to a totally different tool (section of the page). In
Firefox, it (correctly) scrolls up and down the text at the tool I had
originally selected.
I tried putting a document.focus() or a selection.blur() into the go
function, but they didn't seem to help.
Any thoughts?
Thanks,
-Amir Karger