Skip to content

Iframe

Create or delete an iframe to embed websites.

Authors and contributors to this experimental extension: Bouh, DHsw.


This extension allows you to set up and create Iframes to show websites on your game.

New action in this extension:

  • Create an iFrame
  • Delete an iFrame

For security reasons on browsers, some websites can be limited if the host and the iFrame do not have the same origin. Read more: Same-origin policy

Tip

Learn how to install new extensions by following a step-by-step guide.

Actions

Create an Iframe
Create a new Iframe to embed a website inside the game.

See parameters
  • Parameter 1 (string): Name (DOM id)
  • Parameter 2 (string): URL
  • Parameter 3 (🔢 Number): Width
  • Parameter 4 (🔢 Number): Height
  • Parameter 5 (🔢 Number): Position X
  • Parameter 6 (🔢 Number): Position Y
  • Parameter 7 (❓ Yes or No): Show scrollbar
  • Parameter 8 (❓ Yes or No): Show border
  • Parameter 9 (string): Extra CSS styles (optional) e.g: "border: 10px #f00 solid;"

Technical note: parameters 0, 10 are internal parameters handled by GDevelop.

Delete an Iframe
Delete the specified Iframe.

See parameters
  • Parameter 1 (string): Name (DOM id)

Technical note: parameters 0, 2 are internal parameters handled by GDevelop.


This page is an auto-generated reference page about the Iframe extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.