Skip to content
Mistium edited this page Feb 1, 2024 · 1 revision

Info

Iframes allow you to quickly show websites within Origin and on top of OSL applications.

Commands

iframe "getall"

This command returns an array of all the open iframes in your application.

Example:

iframe "getall"

iframe "url" "identifier" x y width height

Opens an iframe and sets the variables iframe_url and iframe_title to the URL and title of the page they are viewing.

  • "identifier": A unique identifier for the iframe.
  • x: X-coordinate of the iframe's position.
  • y: Y-coordinate of the iframe's position.
  • width: Width of the iframe.
  • height: Height of the iframe.

Example:

iframe "url" "exampleIframe" 100 100 400 300

iframe "identifier" "show"

This command shows the iframe identified by the specified identifier.

  • "identifier": The unique identifier of the iframe to be shown.

Example:

iframe "exampleIframe" "show"

iframe "identifier" "hide"

This command hides the iframe identified by the specified identifier.

  • "identifier": The unique identifier of the iframe to be hidden.

Example:

iframe "exampleIframe" "hide"

iframe "identifier" "redirect" "url"

This command redirects a specific iframe to a different URL.

  • "identifier": The unique identifier of the iframe to be redirected.
  • "url": The new URL to which the iframe should be redirected.

Example:

iframe "exampleIframe" "redirect" "https://new-url.com"

iframe "identifier" "remove"

This command deletes an iframe identified by the specified identifier.

  • "identifier": The unique identifier of the iframe to be removed.

Example:

iframe "exampleIframe" "remove"