I got requirement from client that when any user swipe their card then their details should be capture in web page automatically on client side. However same we are doing in
The only way you could do that would be to use the NPAPI — e.g., a "browser plugin" like the Java plugin. NPAPI plugins have full, unrestricted access to the client machine.
But note that Chrome is dropping support for NPAPI plugins (in fact, already has in Linux and will soon under Windows), so even if you wrote an NPAPI plugin and got people to install it, before long they wouldn't be able to use it in Chrome. Similarly, your ActiveX solution won't work in more modern versions of IE, since IE dropped support for them.
In short: You cannot do this in a modern browser. Instead, you'll need to create a program users download and install. That program could contain a hosted browser control, or you could try to use the OS's application automatic interface (if it has one) to find the browser window and paste the information into it. That would, of course, be different on every OS.