Javascript only works in chrome and FireFox not IE
<p>I have been stumped by IE9 bugs lately. I have this function </p>

<pre><code>        //return value in the admin/user select in url to get result via $_GET when page reloads
       function toggleView() {
        //parse url to remove all parameters other than ghost_id
         var url = window.location.href.split("&amp;")[0];
         var view_type = $("#toggle_view").val();
        //reload page with view type selected 
         window.location.href = url+"&amp;view_type="+view_type;    
        }
</code></pre>

<p>What this function is doing is removing the parameters in the url, replacing them with a new parameter and reloading the page so my php can get the new value via $_GET when it reloads.</p>

<p>This works flawlessly in Firefox and Chrome but in IE9 the javascript function is not even being called.  I am wondering if there is an alternative way to do this in jQuery or some other javascript to solve the IE9 issue.</p>
