> For the complete documentation index, see [llms.txt](https://docs.puppetry.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.puppetry.app/target/iframe-target.md).

# iFrame Target

Imagine we have an iframe (`#iframeFoo`) and need to query a sub-element within its scope. So we create a target for the iframe container:

![Defining iframe container target](/files/-LuI-t0DS86-J2hVVRNe)

Then  we create a target for the local element

![Defining local target](/files/-LuI-vfHZGcgQavR600e)

The first one is a simple target like we are used to have in Puppetry, but the second is chained one. While building it we expand Options, set **Parent target** to `IFRAME_FOO` and **Parent type** to `inline frame`.

![Chained target](/files/-LuI-zwgiE420RssQtvh)

As soon as the local element target defined (`IFRAME_FOO_LOCAL`) we can address it as any simple target.
