Stop java script till agent finishes execution

Hi AllI am running a agent through the click of of a button.Code is in Java script.Just down below the code to run the agent I am writing code to click another button but I want this click to happen only after agent is over.Is there any way to stop javascript code till agent is finished.

Regards

Sushant Kumar

Yamaha -Infotech

Subject: Stop java script till agent finishes execution

you can use javascript inside you agent after its execution.

In you agent…after all the lotus script code

print “”

print “document.forms[0].BUTTON.click();”

print “”

End Sub

Subject: RE: Stop java script till agent finishes execution

Dear Puja Thanks for your timely suggestion

Sushant kumar