When you open certain file types in Windows 7 or Vista, such as an Outlook email attachment, Windows displays a warning message about opening a file from an untrusted source. If you trust the sender ...
JS probably isn't the way to go. Probably a better way would be to write an app with an embedded IE window.