• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Javascript & Firefox

The Donut

2[H]4U
Joined
Jan 28, 2003
Messages
3,122
Hey,

I'm just trying to figure out a problem, why this javascript doesn't seem to work in Firefox but works fine in IE. The dropdowns I setup work and function correctly.

Here is the code, after you hit the "Go" button.

<script language=Javascript>function findmyink() {window.location.replace('http://mysite.com/'+brandSelect.value+'/'+modelSelect.value+'.html')};</script>
Now, in IE the script works fine and it goes to the page thats generated using the dropdown values (brandselect and modelselect). However, in Firefox, there are no JS errors, but clicking the Go button does nothing. Link shows up, but nothing shows up.

(I'm using href="javascript: findmyink()")

Anyone have any ideas?
 
Have the variables brandSelect and modelSelect been defined? Or are you tyring to directly access form controls by name?

Try document.getElementById('brandSelect').value or document.formname.brandSelect.value
 
Back
Top