简体   繁体   中英

javascript - confirm() not working in IE9 but working in IE8

I have below code in my aspx page, which is working fine in IE8. but not working in 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? Check this out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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