Yes i copied from your message but there is in your code its missing too.
Is that true ?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
$(document).ready(function()
{
$("#link").click(function(event){
window.parent.window.cpAPIInterface.setVariableValue( 'cpCmndGotoSlide', 2 );
});
});
</script>
</head>
<body>
<p>To go to slide 2 in Captivate you must click <a id="link" href="">here</a><p>
</body>
</html>
The code you have above is correct.
Mine was missing the }); after the click function.
Below is an example of a HTML page with a scrolling text box.
Let me know if it works.
HTML code (insert as web object)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<style>
#scrollTextBox
{
border:1px solid blue;
width:300px;
height:150px;
overflow:scroll;
}
</style>
<script>
$(document).ready(function()
{
$("#link").click(function(event)
{
window.parent.window.cpAPIInterface.setVariableValue( 'cpCmndGotoSlide', 2 );
});
});
</script>
</head>
<body>
<div id="scrollTextBox">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa ligula eget dolor ligula eget dolor ligula eget dolor.</p>
<p>To go to slide 2 in Captivate you must click <a id="link" href="">here</a>.<p>
</div>
</body>
</html>