以下是我显示消息的代码" ....点击此处...."但是在IE 11.0.9中点击它什么都不做,但它形成链接,即右键单击并在新选项卡中打开打开链接。它也适用于谷歌浏览器
<div id='alrt'></div>
function onSubmit()
{
var strPN =document.getElementById("PN").value;
var url = "ORKUT.COM";
document.getElementById('alrt').innerHTML='downloading...';
setTimeout(function() {document.getElementById('alrt').innerHTML='';},12000);
var left = (screen.width/2)-(550/2);
var top = (screen.height/2)-(550/2);
popupWindow = window.open (url, 'newWindow', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+550+', height='+550+', top='+top+', left='+left);
popupWindow.focus();
document.onmousedown = focusPopup;
document.onkeyup = focusPopup;
document.onmousemove = focusPopup;
setTimeout(function () { popupWindow.close();}, 35000);
document.onmousemove = checkWin;
}
function checkWin() {
if(popupWindow.closed)
{
document.getElementById('alrt').innerHTML='<strong>If download is not successful,<a href="http://ABC/Home/DownloadDocPage"> Click here</a> to download </strong>';
}
}