ActiveXobject error in javascript
<p>I use ths script in Default.aspx page.</p>

<pre><code>&lt;script id="clientEventHandlersJS" type="text/javascript"&gt;

        function Button1_onclick() {
            var locator = new ActiveXObject ("WbemScripting.SWbemLocator");
            var service = locator.ConnectServer(".");
            var properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration");
            var e = new Enumerator (properties);
            document.write("&lt;table border=1&gt;");
            dispHeading();
            for (;!e.atEnd();e.moveNext ())
            {
                var p = e.item ();
                document.write("&lt;tr&gt;");
                document.write("&lt;td&gt;" + p.Caption + "&lt;/td&gt;");
                document.write("&lt;td&gt;" + p.IPFilterSecurityEnabled + "&lt;/td&gt;");
                document.write("&lt;td&gt;" + p.IPPortSecurityEnabled + "&lt;/td&gt;");
                document.write("&lt;td&gt;" + p.IPXAddress + "&lt;/td&gt;");
                document.write("&lt;td&gt;" + p.IPXEnabled + "&lt;/td&gt;");
                document.write("&lt;td&gt;" + p.IPXNetworkNumber + "&lt;/td&gt;");
                document.write("&lt;td&gt;" + p.MACAddress + "&lt;/td&gt;");
                document.write("&lt;td&gt;" + p.WINSPrimaryServer + "&lt;/td&gt;");
                document.write("&lt;td&gt;" + p.WINSSecondaryServer + "&lt;/td&gt;");
                document.write("&lt;/tr&gt;");
            }
            document.write("&lt;/table&gt;");
        }
        function dispHeading()
        {
            document.write("&lt;thead&gt;");
            document.write("&lt;td&gt;Caption&lt;/td&gt;");
            document.write("&lt;td&gt;IPFilterSecurityEnabled&lt;/td&gt;");
            document.write("&lt;td&gt;IPPortSecurityEnabled&lt;/td&gt;");
            document.write("&lt;td&gt;IPXAddress&lt;/td&gt;");
            document.write("&lt;td&gt;IPXEnabled&lt;/td&gt;");
            document.write("&lt;td&gt;IPXNetworkNumber&lt;/td&gt;");
            document.write("&lt;td&gt;MACAddress&lt;/td&gt;");
            document.write("&lt;td&gt;WINSPrimaryServer&lt;/td&gt;");
            document.write("&lt;td&gt;WINSSecondaryServer&lt;/td&gt;");
            document.write("&lt;/thead&gt;");
        }
    &lt;/script&gt;
</code></pre>

<p>in above code I am trying to fetch MAC address of client. But i am getting error 
at first line
 `var locator = new ActiveXObject ("WbemScripting.SWbemLocator");'</p>

<p>that activeX object cant be created, please help me.</p>
