• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
charmaine

charmaine

Glancer_Test

Remix of glance/Glimpse
Public
Like
Glancer_Test
Home
Code
9
.vscode
1
backend
4
frontend
6
shared
1
.cursorrules
.vtignore
INSTRUCTIONS.md
README.md
deno.json
Branches
1
Pull requests
Remixes
History
Environment variables
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/18/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:
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.