Could anyone help me? Is it possible to code this? Redirect page inside iframe to another one but we must stay in iframe . Without influence to parent site. I tried many scripts
$(function() { if ('app' !== $('body').attr('id')){ window.setTimeout(function(){ window.top.location.href = 'your redirect url'; }, 5000); } });
in IFRAME use
sandbox="allow-top-navigation allow-scripts allow-forms"