jeudi 20 octobre 2016

Split is not working in IE9

Split function is not working in IE9

Here is my code

 <script type="text/javascript">
        var currURL = window.location.href;
        $(document).ready(function () {
            var hasFilters = currURL.split('?')[1];
            alert(hasFilters);    
            if (hasFilters) {
                abc(currURL);
            }
        });
</script>

When I am running this script in IE9 at that time, in alert showing "undefined" while at other browser in alert shows concate string for currurl for ex : "abc=def:ijk!!a!!".

So I want to do same in IE9.

Maybe somebody can point me to the right answer? Thx

Aucun commentaire:

Enregistrer un commentaire