Skip to content Skip to sidebar Skip to footer

Ie7 Window.location.href

I want to redirect a IE7 user, but window.location.href does not seen to work properly. Any suggestion? $('.navigation-next a').bind('click', function (a) { a.preventDefault();

Solution 1:

You have to use window.location.replace() on IE7 and earlier.

<scripttype="text/javascript">functionredir(url){ window.location=url; }
</script><!--[if lte IE 7]>
<script type="text/javascript">
    function redir(url){ window.location.replace(url); }
</script>
<![endif]-->

This is why all web developers should drop support for IE until Microsoft fixes it!

Post a Comment for "Ie7 Window.location.href"