使用internet explorer 11单击href链接时出错
Error when I click on href link with internet explorer 11
我已经检查了这个链接在href ie 11中使用js时出错,但它并不能解决我的问题。
我的链接位于应用程序A上,当我单击链接时,我会向应用程序B发送信息:这是我在应用程序A:上的链接
<a target="_blank" href="javascript:displayInfinityPage({{userName}});">{{l10n "Data access"}} </a>
这是我的JavaScript函数:
//Posts the username back to Application B
function displayInfinityPage(username){
window.opener.postMessage(username,"*");
}
这就是我在应用程序B:上接收数据的方式
function onMessageApp(e) {
if (e.data != "1") {
var consumerPageSearchOpened = ((document.getElementById('DEBTOR_ID')) ? true:false);
if (e.origin == "http://10.1.92.3:9090" && consumerPageSearchOpened) {
document.getElementById("ID").value = e.data;
document.getElementByName("subcommand").click();
} else {
alert("Application B is rejecting message from "+e.origin+");
}
} else if (e.data == 1) {
alert("Update status");
command=collections.changeicstatus&i3_status=0
var url = document.getElementById("curSession").value+'?command=collections.changeicstatus&i3_status=0';
command=collections.changeicstatus&i3_status=0';
window.location = url;
window.opener.location.href = url;
}
}
window.addEventListener("message",onMessageApp,true);
这是我得到的错误:
无法显示此页面。请确保网址//ieframe.dll/dnseror.htm#是正确的
应用程序A正在打开一个新的选项卡,地址栏中显示"javascript:displayInfinityPage({{147852}}(;",而不是在应用程序B中填充147852("ID"字段(
我也有同样的问题。错误是:无法显示此页面。请确保网址//ieframe.dll/dnseror.htm#正确无误。
相关文章:
- 创建一个类似链接的按钮,并通过Javascript函数打开一个新的弹出窗口
- 如何使用jQuery自动打开页面上的所有链接
- 动态地改变“”的URL;添加新项目”;链接使用javascript/jquery
- jquery动画可以通过编程链接吗
- 在单击href链接的同时下载文件
- 尽管链接成功并已成功下载,但未找到NPM模块
- 制作一个不带HTML a标记但在动画播放完毕后指向其他页面的超链接
- ReactJS映射:如何仅在url变量不为空时呈现html链接
- lodash:链接mapValues时出错
- 链接页面时出错
- 如何使用 Restangular 在出错时停止链接的请求
- 如何将鼠标悬停在链接上时显示demo_test.txt的内容?我哪里出错了,我的代码应该是什么样子
- 更新链接函数中的指令范围时出错
- 带有链接的图像淡入时出错
- 单击高图列上的链接时出错
- 链接预览脚本出错
- 使用internet explorer 11单击href链接时出错
- Indesign脚本GREP在应用超链接目的地时出错
- 在 Angular 中链接子目录时出错
- 在nproject上调用方法出错!用于伸缩深度链接