Need to clearInterval in iframe from parent and it's not working
问题 I'm using setInterval inside an iframe, and I need to be able to stop it from the parent window, and it doesn't seem to be working. I'm assigning a global variable ('modelViewRefresh') to the setInterval event to be accessed from the parent. I'm using this code in the parent to try and trigger clearInterval, but it doesn't seem to be working: var modelViewRefresh = document.getElementById(widget_id + '_iframe').contentWindow['modelViewRefresh']; console.log("modelViewRefresh=" +