Hi There,
I’m trying to use JS to target an iframes src attribute, for the purpose of reloading in page. Here’s the JS I’m using, as you can see it simply reselects the src to force a reload.
function refreshIframe() {
var ifr = document.getElementsByName('Right')[0];
ifr.src = ifr.src; }
Then my button calls the function onclick.
I use raw content, or text box to put my iframe in, including the src attribute
But, then cornerstone seems to move my src to a data-src attribute, and fill the src attribute with some jargon.
I’ve tried forcing the src to stay as I require, by using custom attributes, but this does not work.
Is there any way around this? I don’t really understand why CS changes the src to data-src.
Thanks
Tom