2014-05-15 93 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'); 
}) 
相關問題