Is there a method that makes a function run after a certain time? What I need is that the function below execute after a period of time, because the ID that it searches is only available after a time that we stayed on the page.
var func = document.getElementById('olvideo_html5_api').src;
alert(func);
window.location.href = +func