JimOwen-f418d1f
8 months agoCommunity Member
Set Web Object URL at runtime
I would like to set the URL to a web object at runtime. Basically I want to build a URL in JavaScript based on some variables, then assign the web object to that URL when the slide is displayed. I tried the below code., which did not work. (I'm hard-coding the URL first, just to see if I could do it at all - eventually I will build newURL programmatically.) How do I do it?
var newURL = "https://www.example.com/newpage"; document.getElementById("yourWebObjectID").data = newURL;