Hello all.
I have a dropdown list:
<select name="select" class="mapMenu" onChange="JumpT oIt(this)">
<option selected value="none">Se lect a Tool --</option>
<option value="javascri pt:onCreatePrin table()">Print Map</option>
<option value="javascri pt:onFindLatLon g()">Find Lat/Long</option>
</select>
That calls a script:
<SCRIPT LANGUAGE="JavaS cript">
<!--
function JumpToIt(list) {
var newPage = list.options[list.selectedIn dex].value
if (newPage != "None") {
location.href=n ewPage
}
}
//-->
</SCRIPT>
Which in turn selects an option from the original dropdown.
Works fine except.....
The options in the select call scripts that open new browser windows,
and when this occurs popup blockers swing into action and block the new
window. When I originally had the javascript calls as plain links such
as [HREF="javascrip t:onCreatePrint able()"] the popup was not blocked
since it was obvious that user was clicking the link. Now that I'm
trying to save much needed space by putting these links into a
dropdown, the popup blockers are not recognizing the user selection....
I guess. I was thinking the javascript could somehow simulate an
onClick to alleviate the problem. Any suggestions?
Thanks
Steve,