Hi,
I tried this but unable to get it to work for me, so I just added a Button to the browse which open a Menu (popup window)
From there I add the options.
If any of the options require a refresh of the original browse I use
p_web.Script('location.reload();') from the close of the Menu.
Not sure if this is any help but does the job for me for now.
You can see the effect at
https://cpslive.co.ukIt will not do the refresh as you can't login but will show the Menu Options.