FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
stevekrouse
stevekrousemarkdown-embed
Public
Like
markdown-embed
Home
Code
9
.vscode
1
backend
4
frontend
6
shared
1
.cursorrules
.vtignore
INSTRUCTIONS.md
README.md
deno.json
Branches
2
Pull requests
Remixes
History
Environment variables
5
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
frontend
/
components
/
content
/
iframe
/
iframe.md
Code
/
frontend
/
components
/
content
/
iframe
/
iframe.md
Search
6/5/2025
iframe.md
// excerpted from Glance Docs

iframes and the Glance script tag

For iframes to appear in Cobrowse sessions, each Iframe must also include a Glance script tag.

// TODO: excerpt relevant part of Glance script here <script id="glance-cobrowse" charset="UTF-8" type="text/javascript" ... /></script>

Exceptions

There are exceptions to that rule:

  • The iframe is dynamically built using JavaScript
  • The hostname and protocol of the iframe match the parent. For example, the parent is at https://www.mycompany.com, and the iframe is also at https://www.mycompany.com.
<script <!-- TODO: add code here --> ... /></script>

In these cases, Glance is able to automatically include the iframe in the Cobrowse session.

On this page

The game on this page is in an iframe, and the src of the iframe is on another subdomain. The game appears during Cobrowse because Glance's javascript is in this page, and also in the code of that external iframe src; e.g.,

// TODO: excerpt relevant part of Glance script here <script id="glance-cobrowse" charset="UTF-8" type="text/javascript" ... /></script>

Continue reading on help.glance.cx →

Get started with a template:
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesCLIAI agentsCode intelligenceSlack integrationsGTMPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.