If you access a Notes database via browser, you can have a button that runs an agent - but the agent must be configured to run on backend objects only - no UI functions are available (since they are run by the Notes client, and you don't have one).
Of course, if you browse outside a Notes database, this will not be possible.
Pascal.