There might be cooler ways to do this in JavaScript, but if your webpage uses anchor (id) tags, then you can refer to them in an HTML string that calls a webobject in Storyline. For example, you can call a portion of a page, like this: http://mydomain.sample.html#myid.
JavaScript works with the page's Document Object Model (DOM); you'd still need one or more anchors in the HTML (otherwise, your JavaScript won't know where to jump to). You'd use a call to goToAnchor in JavaScript to jump to one of the anchors. See:
2 Replies
There might be cooler ways to do this in JavaScript, but if your webpage uses anchor (id) tags, then you can refer to them in an HTML string that calls a webobject in Storyline. For example, you can call a portion of a page, like this: http://mydomain.sample.html#myid.
Here is a quick example.
JavaScript works with the page's Document Object Model (DOM); you'd still need one or more anchors in the HTML (otherwise, your JavaScript won't know where to jump to). You'd use a call to goToAnchor in JavaScript to jump to one of the anchors. See:
http://www.ehow.com/how_8582631_jump-anchor-javascript.html
This discussion is closed. You can start a new discussion or contact Articulate Support.