重定向到其他页面在IE11中不起作用 [英] Redirect to the other page is not working in IE11

查看:88
本文介绍了重定向到其他页面在IE11中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



当用户点击按钮时,我一直在尝试使用javascript重定向到另一个页面。这在除IE11之外的所有浏览器中都能很好地工作。



以下是JS功能:



 function setAccountBts(){ 
target.find( div.content a.myaccountbt)。click(function(function( ){
window.location.href = http://mywebsite.com/Member/MyAccount.aspx ;
});
}





任何帮助或建议都将不胜感激。



谢谢

解决方案

hi


试试这样



  function  setAccountBts()
{
window . location .href = http:/ /mywebsite.com/Member/MyAccount.aspx;

}





此行未获得正确的控制名称ie11



target.find(div.content a.myaccountbt)。点击





所以在按钮客户端点击事件你调用setAccountBts()并检查


嘿伙计,



我认为你的IE在IE上是禁用的,你需要在您的浏览器上启用您的JavaScript。



点击此链接启用您的JavaScript。



http://support.microsoft.com/gp/howtoscript [%5E]



如果您的JavaScript已启用且仍然无效,那么您可以尝试



window.top.location =pageurl.aspx 。



我在这篇文章中使用过它:



http://www.c-sharpcorn er.com/UploadFile/cd7c2e/how-to-auto-refresh-grid-view-on-closing-of-popup-menu/[^]

Dear All,

I have been trying to redirect to another page using javascript when an user clicked on the button. This is working perfectly in all the browsers except IE11.

Below is JS function :

function setAccountBts() {
    target.find("div.content a.myaccountbt").click(function () {
        window.location.href = "http://mywebsite.com/Member/MyAccount.aspx";
    });
}



Any help or suggestion would be greatly appreciated.

Thanks

解决方案

hi
try like this

function setAccountBts()
{
        window.location.href = "http://mywebsite.com/Member/MyAccount.aspx";
    
}



this line not get correct control name in ie11

target.find("div.content a.myaccountbt").click


so in button client click event u call setAccountBts() and check


Hey Buddy,

I think your JavaScript is disabled on IE, you need to enable your JavaScript on your Browser.

Follow this link to enable your JavaScript.

http://support.microsoft.com/gp/howtoscript[%5E]

If your JavaScript is enabled and still it is not working then you can try

window.top.location="pageurl.aspx".

I had used it in this article:

http://www.c-sharpcorner.com/UploadFile/cd7c2e/how-to-auto-refresh-grid-view-on-closing-of-popup-menu/[^]


这篇关于重定向到其他页面在IE11中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆