Search code examples
htmlgoogle-apps-scriptiframeweb-applications

Why an iframe does not load when embedded into a Web App page?


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?


Solution

  • You cannot show iframes inside Apps Script.