別のページにリダイレクトする必要があるasp.net mvcアプリケーションがあります。
<script>
$(function () {
$('.Enregistrer').click(function () {
window.location.href ="www.google.com";
});
});
</script>
window.location.href
、location.href
、location.replace
およびを使用location
してリダイレクトしようとしましたが、2 つの異なるブラウザー (Chrome && IE) では機能しませんでした
理由は何ですか?どうすれば修正できますか?