3

I tried to load this html code onto a Google script:

<iframe src="http://www.w3schools.com"></iframe>

saved the file with the name "page" then used this in the Google script:

function doGet() { return HtmlService.createHtmlOutputFromFile('page'); }

It views the iframe, but with no content. Am I missing something here?

0

1 Answer 1

3

You cannot show iframes inside Apps Script.

Sign up to request clarification or add additional context in comments.

2 Comments

I don't think there was anything wrong with the HTML code, so I'm guessing you're right. But what if I add an iframe gadget to a google sites and let a script handle it using the sites API (getHtmlContent and setHtmlContent), is it valid?
That would work. The key is that you can't show an iframe inside the script's own content.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.