window.location.href does not work
<p>I have the below java script function in which I want to redirect the page to another page. I verified that 'Got' message is shown by the alert function. So, the function is invoked properly. However, the page redirection with window.location.href does not work. Moreover, the alert function that prints the content of option, vDaeId, dgpId does not executed (I dont see a pop up in the browser). Could you please tell me what's wrong with this piece of code? Thanks. I am using firefox btw.</p>

<pre><code>        function goToPMDisplayer(){
            alert('Got '); 
            var option=document.getElementById("D1").value;
            var vDaeId=document.getElementById("D2").value;
            var dgpId=document.getElementById("dgpids").value;
            var str= option + " "+ vDaeId + " "+ dgpId
            alert(str); 
            window.location.href="display.jsp?option="+option + "&amp;vdaeid=" + vDaeId + "&amp;dgpid=" + dgpId

        }
</code></pre>
