function checkform() {
if (document.getElementById("UserName").value=="" || document.getElementById("sPassword").value==""){
alert("用户名或密码为空!");
return false;
}
return true;  }

解决方案 »

  1.   

    function checkform() {
    if (document.getElementById("sUserName").value=="" || document.getElementById("sPassword").value==""){
    alert("用户名或密码为空!");
    return false;
    }
    return true;  }
      

  2.   

    请问这个alert的内容“用户名或密码为空”如何作成国际化的文本。多谢
      

  3.   

    ie下可以判断navigator.userLanguage的值,做个switch
      

  4.   

    有没有关于javascript国际化的比较好的开源框架可以用?
    多谢