How can I run or execute JavaScript code from a LotusScript agent? Specifically, I would like to run the history.replace JavaScript function from a LotusScript agent.
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
If I understand your question correctly, simply have your LS agent print the JS to the browser
and the browser will execute it. For example:
Print |<SCRIPT language="JavaScript">history.go(-1)</SCRIPT>. Do you mean the
location.replace method by chance? As far as I know, there is no history.replace method in
JavaScript.
This was first published in November 2001