Hi Jacque, > Am 06.12.2022 um 21:59 schrieb J. Landman Gay via use-livecode > <use-livecode@lists.runrev.com>: > On 12/6/22 1:13 PM, Klaus major-k via use-livecode wrote: >>> what is the browser widget's equivalent to a field's "on linkclicked tLink" >>> message? >>> Thanks for any hint! >> I want to check if the user clicked e.g. a PDF file and download the file in >> that case. >> What message do I have to catch in the browser widget? > You could try "browserDocumentLoadBegin" or "browserNavigateBegin" which > would give you the URL that was clicked. But most browsers now download or > display the PDF automatically when a PDF link is clicked. Firefox opens the > PDF in a new window, and I think Safari downloads it. Not sure about Windows.
Windows, too, if the Acrobat Plug-in is installed on the target machine. Only Android cannot display in a browser so far, too bad. > If this is for mobile, the URL might be enough information. BTW, I tried to > use these messages a very long time ago and they were not sent, but hopefully > that's been fixed by now. Fingers crossed, will try and tell. :-) Thank you! > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode