Forum Discussion
RonLinder-4c1a3
2 days agoCommunity Member
Working with iframe (Web Object)
I have a Web Object with javascript content that opens another module from Workday. So basically this happens: I have a storyline module with a Web Object that open an Html/Jscript landing page W...
SamHill
5 hours agoSuper Hero
Hi RonLinder-4c1a3 in the HTML page you have in the WebObject for navigation, just add this function to the <head> of the HTML page and wrap it in <script></script> tags:
function goToProject(newLocation) {
window.parent.location.href = newLocation;
}
You can then call this function and just pass the URL, from a button, or link. Here are some examples:
// from a link <a>
<a href="javascript:void(0);" onclick="goToProject('https://abc.com/widgets101/introduction/story.html');">Introduction</a>
// from a button <button>
<button onclick="goToProject('https://abc.com/widgets101/introduction/story.html');">Introduction</button>