我有.js和.vbs。
.js
IE4 = document.all;
function newAlert(title,mess,icon) {
(IE4) ? makeMsgBox(title,mess,icon,0,0,0) : alert(mess);
}
function msgBox(title,mess,icon,buts,defbut) {
retVal = (IE4) ? makeMsgBox(title,mess,icon,buts,defbut,0) : null;
return retVal;
}.vbs
Function makeMsgBox(tit,mess,icons,buts,defs,mods)
butVal = buts + (icons*16) + (defs*256) + (mods*4096)
makeMsgBox = MsgBox(mess,butVal,tit)
End Function
Function makeInputBox(tit,pr,def)
makeInputBox = InputBox(pr,tit,def)
End Function我需要在IE11中使用其他方法来解决这个问题。我知道IE11不再支持.vbs和document.all了。但我需要同样的功能。有什么选择吗?
发布于 2014-05-01 04:58:13
你到底需要什么“功能”?
在互联网区域的IE11中,您最好的选择是来自JavaScript的alert(),或者您可以创建一个看起来像旧的VBScript警告框的HTML弹出窗口。
https://stackoverflow.com/questions/23365120
复制相似问题