google doc reader : remove the option “Open in new window”

空扰寡人 提交于 2019-12-10 15:04:30

问题


Is there any way of removing or disabling the 'open in new window' icon of google doc reader( when used in embedded mode interface) through the embedded code(which we write for embedding documents) or javascript/jquery?


回答1:


I don't know if there is any standard method. If you really want to do it, then you can try something like this.

<html>
    <body>
        <div style='position:relative;'>
            <div style='background-color:White;top:0px; height: 47px; position: absolute; left:0px; width: 100%;'></div>
            <div style='background-color:LightGray;top:47px; height: 5px; position: absolute; left:0px; width: 100%;'></div>
            <iframe src='http://docs.google.com/viewer?url=http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf&embedded=true' width='100%' height='100%' style='border: none;'/>
        </div>
    </body>
</html>



回答2:


No, as I understand the embedded code runs in an iFrame from another domain (Google), so you cannot use script to change the contents of that.

Perhaps, try adding &rm=minimal to the url of your embedded document.

Embed editable Google Docs spreadsheet without header & toolbar



来源:https://stackoverflow.com/questions/7319528/google-doc-reader-remove-the-option-open-in-new-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!