问题
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
回答1:
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>
来源:https://stackoverflow.com/questions/62039486/cant-have-link-in-embedded-web-app-in-google-site