function getWindowsUserName()
{
var WinNetwork = new ActiveXObject("WScript.Network");
var urlToSite = createCustomURL(WinNetwork.UserName);
document.getElementById("psyncLink").src = urlToSite;
if(requestingPassword())
{
alert("password button screen");
} else {
alert("direct password required");
}
}
function requestingPassword()
{ // <-- This is the line that is getting the error
// Unspecified error
// Code: 80004005
// Microsoft JScript Runtime error
var btn = window.frames[1].document.getElementsByName("SUBMIT-password.pss");
if (btn.length == 0) {
return false;
} else {
return true;
}
}
requestingPasswordをboolメソッドにしたかったのですが、Javascriptが次のようなメソッド名をサポートしていないことを知りました。
public bool nameofmethod()
構文は正しいと思います。どんな助けでもいただければ幸いです!