help on window.location

S

shotokan99

hi,

i do have dropdown box that contains several items with attached
links:

<select class="text" onchange="linker()" name="menu1">
<option value="#" selected="selected">--- Countries
---</option>
<option
value="#">Argentina</option>
<option value="#">Australia</option>
<option value="#">Brazil</option>
<option value="#">Canada</option>
<option value="#">China</option>
<option value="http://
www.mypage.com"class="textRed">*France</option>

the linker() function:

function linker(){
var s=menu1.options[menu1.selectedIndex].value;
if(s !== '#'){
window.location.href = s;
}

this works perfectly IE but in doesnt work in firefox. can someone pls
tell me what is wrong?

tnx
 
L

-Lost

Randy said:
shotokan99 said the following on 5/6/2007 10:04 PM:

Best way to do what?

I think (s)he was talking about the best way to lure a blond
nymphomaniac to a deserted island.

Not totally sure as the topic is throwing me, and I cannot remember the
content without adequately quoted/trimmed um... content.
 
S

shotokan99

if this function is specific for ie:
function linker(){
var s=menu1.options[menu1.selectedIndex].value;
if(s !== '#'){
window.location.href = s;
}



how to do it with firefox?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,431
Latest member
ElyseG3173

Latest Threads

Top