Javascript 更改错误文本“;用户ID或密码不正确。”;
当通过AD FS登录页面登录Office 365时,我在输入错误的密码时收到以下错误文本:错误的用户ID或密码。请键入正确的用户ID和密码,然后重试。 我想换一下。我已经能够通过编辑onload.js来更改userNameFormatError和passwordEmpty消息,如下所述:但不能更改错误的密码文本。我已经使用FireFox和Chrome的开发工具来监控它是如何改变的,但毫无用处Javascript 更改错误文本“;用户ID或密码不正确。”;,javascript,office365,adfs,Javascript,Office365,Adfs,当通过AD FS登录页面登录Office 365时,我在输入错误的密码时收到以下错误文本:错误的用户ID或密码。请键入正确的用户ID和密码,然后重试。 我想换一下。我已经能够通过编辑onload.js来更改userNameFormatError和passwordEmpty消息,如下所述:但不能更改错误的密码文本。我已经使用FireFox和Chrome的开发工具来监控它是如何改变的,但毫无用处 var labelAuthfailed = document.getElementById("erro
var labelAuthfailed = document.getElementById("errorText") ;
if ( labelAuthfailed && labelAuthfailed.innerHTML == "Incorrect user ID or password. Type the correct user ID and password, and try again.") {
labelAuthfailed.innerHTML = "Booh! Fat fingers!" ;
}