Javascript Code fails in Mozilla Firefox

Question!
function getSelectedRadio(seeker_provider) {
  var sign;
  for (var i=0; i<seeker_provider.length; i++) {
    if (seeker_provider[i].checked)
    {
      sign=i;
    }
  }
  if(sign==0)
  {
    alert(sign);
    window.location='updatcty.php';
  }
  if(sign==1)
  {
    alert(sign);
    window.location='../registration_provider.php?proid=2222221 & pagname=select';
  }
  // alert(document.all.seeker_provider.value);
}

I wrote this JavaScript function for getting the selected radio button value and redirect accordingly, but it supports all browsers except Firefox 3.0.6. What can I do?



Answers

Try changing this line:

window.location='../registration_provider.php?proid=2222221 
By : Ian Kemp


This video can help you solving your question :)
By: admin