Equivalent of a field's "on linkclicked" message in a browser widget?

Klaus major-k klaus at major-k.de
Fri Dec 9 06:01:39 EST 2022

Hi all,

with some help form the LC forum, I finally had kind of success with this:
on browserNavigateBegin pUrl
   lock screen
   if pURL ends with ".pdf" then
     libURLDownloadToFile pUrl, (specialfolderpath("desktop") & "/test666.pdf")
     go back in widget 1
   end if
  unlock screen
end browserNavigateBegin
With the line GO BACK IN WIDGET 1 the clicked url will NOT get displayed!
Seems the only way to (fake) CANCEL the navigation.



Klaus Major
klaus at major-k.de

More information about the use-livecode mailing list