Browser widget - is there something similar to browserBeforeNavigate

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Sun May 5 18:19:04 EDT 2019


The <http.......> is of course not in my scripts. 



> Am 05.05.2019 um 23:57 schrieb Matthias Rebbe via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>:
> 
> Thanks Ralph,
> 
> tried that already (should have mentioned that), but the URL is loaded right away in the widget and then the script in the message handler browserNavigateBegin is executed.
> 
> This is my script
> on browserNavigateBegin pURL
> 
>    if not (pURL begins with "https://forums.livecode.com <https://forums.livecode.com/> <https://forums.livecode.com/ <https://forums.livecode.com/>>")
> 
>    then
> 
>        answer "Forum jetzt verlassen" with "ja" or "nein"
> 
>        if it is "ja" 
> 
>        then
> 
>          pass browserNavigateBegin
> 
>       else
> 
>         go back in widget "mrBrowser"
> 
>      end if
> 
>   end if
> 
> end BrowserNavigateBegin
> 
> 
> 




More information about the use-livecode mailing list