, pavone wrote

 I have the following javascript:

var WshNetwork = new ActiveXObject("WScript.Network");
var Drives = WshNetwork.EnumNetworkDrives();

Which gives me this warning:
"An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?  YES  NO"

Does anyone know how I can make it so that I can ask the user to install or do something so that that message doesn't pop up again?

Oh boy. You want to do that in javascript? Please don't. By turning that warning off you would allow any web site to start running commands against your network. Not, I think, something you want to do.