js实现自动跳转指定url

<script>
function ok(){
    window.parent.parent.location.href='指定url';
 }
 window.setTimeout("ok();",时间(多长时间跳转到指定url));
 
</script>

原文地址:https://www.cnblogs.com/deram/p/6113880.html