2014-05-15 94 views
0

是否可以在Google Spreadsheets脚本编辑器中重定向URL? 我想这一点,但它重定向脚本完成之前:Google电子表格重定向

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> 
<script type="text/javascript"> 
    $(function() 
     {$("#myiframe").load(window.location.replace('https://www.yahoo.es');}); 
</script> 
<iframe src="https://docs.google.com/a/ageinfo.es/spreadsheets/d/ID" width="760" 
    height="700" frameborder="0" marginheight="0" marginwidth="0"> 
    Loading... 
</iframe> 

感谢

回答

0

我认为,谷歌使用这样的保护,防止在iframe

if (window.top !== window.self) 
{ 
    window.top.location=window.self.location; 
} 

使用spreedsheet的这是什么 ?

$(function() 
{ 
    $("#myiframe").load(window.location.replace('https://www.yahoo.es'); 
}) 
相关问题