I'm trying to integrate a google script app deployed as a web app in a Google Site. The embedding feature works well and all seems good at first. But for some reason links don't work in the embedded view. I can't find any specific topics about this.
Google Script web app can be embedded every where I tried except in Google Site. And Google Site can embed every site that allow it except web app from google script.(couldn't figure out what you trying to say here...Cooper)
EDIT (2)
Turn out the problem can be resolved pretty quickly :
Open https://site.google.com and create a new site
Insert an "embed" choose the "embed code" option and copy past this code :
Click Me!
Now testing on preview or once the site publish the link can't be clicked
Google Site embedTo embed content, choose “Embed,” then select “Embed Code” (instead of URL) and paste your embed code into the box. Choose “Next” to see a preview of your embedded content. Select “Insert” to add it.
Select the text or picture that you want to display as a hyperlink. Press Ctrl+K. You can also right-click the text or picture and click Link on the shortcut menu. In the Insert Hyperlink box, type or paste your link in the Address box.
Many sites offer embed codes on their pages for you to copy and paste. You'll typically see a button labeled Embed code or </>. This opens a text box with some code in it. For example, click the Share button for a video on Vimeo to see the embed code in the share dialog.
You have to specified the target propriety. Google script dont apply it by default so use this code :
<!DOCTYPE html>
<html>
<body>
<div>
<a target="_self" href="http://google.com">Click Me!</a>
</div>
</body>
</html>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With