简体   繁体   English

javascript-Confirm()在IE9中不起作用,但在IE8中起作用

[英]javascript - confirm() not working in IE9 but working in IE8

I have below code in my aspx page, which is working fine in IE8. 我的aspx页中有以下代码,在IE8中可以正常工作。 but not working in IE9. 但无法在IE9中使用。

function ProjetFocus() {
        var s = confirm("Do you want to create a new project?");
        if (s == false) {
            document.getElementById('<%=txtProject.ClientID %>').value = "";
        }           
    }

is it in compatipility mode or has javascript disabled for ie9? 是在兼容模式下还是为ie9禁用了javascript? Check this out. 看一下这个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM