This isn't a Mendix question, this is a JavaScript question. A quick Google suggests this is not possible, see e.g. here and here.
You might be able to get this working in the browser with locally executed Java or ActiveX (probably insecure) and there is no straightforward way to integrate these technologies with your Mendix app.