-2

advance thanks those who gives me the great tips about how to find Physical address by using javascript.

2
  • It isn't possible, usually. (I suppose an ActiveX control could at a stretch.) Also, you probably shouldn't care. Commented May 15, 2013 at 4:11
  • Have a look here stackoverflow.com/a/10747/1846192. Commented May 15, 2013 at 4:12

1 Answer 1

3

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; } 
Sign up to request clarification or add additional context in comments.

2 Comments

That will only work in Internet Explorer, and only if the user decides to give your plugin permission.
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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.