Would it be possible to make something like:
Button - on press -> go to url -  - target self
                                -> execute javascript (alert("hello"))
                                -> go to Layout 2
For now, all I can get is a browser opening destination url, but not executing javasctipt (alert for example) nor proceeding to Layout 2...