I want to get a username for login and display it in a browser. Is it possible to use java script for the same?
I think you can use the ActiveX control (ActiveXObject ("wscript.network")) Example:
var ActiveX=new ActiveXObject("wscript.network"); alert(ActiveX.username); alert(ActiveX.computername); alert(ActiveX.userdomain);
<script type="text/javascript" language="javascript"> var objUserInfo = new ActiveXObject("WScript.network"); document.write(objUserInfo.ComputerName); document.write(objUserInfo.UserDomain); document.write(objUserInfo.UserName); </script>
, Javascript , . Javascript - , , .
ActiveX Kerberos/NTLM script , , javascript. Internet Explorer.
HTTPAuth, , / , javascript .
Javascript - , ...:)
EDIT: @thomas are trying to be more specific ... do you want to build a platform in which users can log in? then use the database in which you store users. Why do you need login windows?
Source: https://habr.com/ru/post/1717322/More articles:Web Services Development Using C # .NET - Compatibility Check - c #SMS between two BlackBerry simulators - blackberryGeneric Reflection.Emit Generic Base Class - genericsИзменение темы по умолчанию Magento - themesWhat is a good choice for a free Flash Socket Server - actionscript-3MKMapView and dequeueReusableAnnotationViewWithIdentifier: - iphonestrange behavior php array_unique - arraysHTML text gradient effect - htmlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1717326/getjson-call-with-null-parameters-to-mvc-controller-action&usg=ALkJrhjEXLN3Zf55rMPUWrTdzSIIU2geRAHow can I constantly execute QueueUserWorkItems, but without queuing them all at once? - multithreadingAll Articles