What’s the wrong with this Javascript line?
user: h.reem
domain: somedomain
var target = "//account/win/winlogin.aspx" +
"?username=" +
user.toString() +
"&domain=" +
domain.toString();
the resutl is always:
//account/win/winlogin.aspx?username=h.reem
Any idea!!

The ActiveX component is probably returning a null terminated string (I’ve seen this with Scripting.TypeLib & a couple of the AD objects for example) so concatenating it with another string fails. (You can verify this if
0 === user.charCodeAt(user.length - 1)).You will need remove the last character before using the string;
user = user.substr(0, user.length - 1);