Cisco Cisco Collaboration Server Dynamic Content Adapter Maintenance Manual

Page of 62
Cisco Collaboration Server ScriptBuilder Guide – Version 5.0 
When an agent opens a user-defined script in the Script Viewer, the script's contents 
appear in the entire viewer.  The script menu no longer appears.  You should include 
a link back to the script menu so that agents can use other scripts.   
Use the 
RevertScript()
 JavaScript function to add a Back link.  Insert this code into 
your HTML pages as follows: 
<a href="javascript:parent.scriptcontrol.RevertScript();">Link Text</a>
 
For Link Text, supply the text that you want to appear in the script.  The agent sees 
this text in the script and clicks the text to return to the script menu.   
Example: 
<a href="javascript:parent.scriptcontrol.RevertScript();"> Back to 
script menu </a>
 
See Also 
For more information on 
See 
Using JavaScript functions within a script 
Sample User-defined Script 
  
38