Detect if PDF document is being opened in Reader and not in a browser tab
So, the title of my thread is very straight forward and that's what I am after... a piece of JS code that ensures me that the document IS in Reader.
The reason is because I have a set of PDF documents stuffed with a lot of JS and that just get stuck when the user's browser opens it in a tab instead to download it.
I kind of worked it around by adding the HTML5 property 'download' at my links declaration to force the download, however I know that not all browser versions recognizes it so once in a while I still will have someone staring to a broken document into a browser tab.
I would appreciate immensely if someone could tell me if it does exist such JS code that may help me with this detection.
Thanks!
