If you have any control the environment where your stuff will be deployed (like on an intranet, instead of just the wild web) then you (or someone) could write an ActiveX control that did the same job as Min, but with just HTML and scripting I don't think you can get the kind of control you want.