Suppose you want to use the same LotusScript code for an action button to use in Web. We can use the LotusScript
code in WebQuerySave and WebQueryOpen event.
In the action button use the formula @command([filesave])and use the LotusScript code as an agent for WebQuerySave event. It is to be noted that the current document is refered as documentContext of NotesSession class.