advance thanks those who gives me the great tips about how to find Physical address by using javascript.
- It isn't possible, usually. (I suppose an ActiveX control could at a stretch.) Also, you probably shouldn't care.Ry-– Ry- ♦2013-05-15 04:11:40 +00:00Commented May 15, 2013 at 4:11
- Have a look here stackoverflow.com/a/10747/1846192.Mathijs Flietstra– Mathijs Flietstra2013-05-15 04:12:13 +00:00Commented May 15, 2013 at 4:12
Add a comment |
1 Answer
Hope this helps!
function networkInfo(){ var wmi = new ActiveXObject ("WbemScripting.SWbemLocator"); var service = wmi.ConnectServer("."); e = new Enumerator(service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")); for(; !e.atEnd(); e.moveNext()) { var s = e.item(); var macAddress = unescape(s.MACAddress); } return macAddress; } 2 Comments
Robert Harvey
That will only work in Internet Explorer, and only if the user decides to give your plugin permission.
Balram Khadka
thanks your support but i already try your code this code is only execute in IE8 but i need to compatible to all browser when client access my web application.