# 页面内部嵌入的 iframe 元素如何加载 SDK？

iframe 元素可以将一个页面嵌入到另一个页面里，iframe 元素会创建包含另外一个文档的内联框架（即行内框架）。简单理解 iframe 可以将多个相互独立的页面展示在一页上。所以我们需要在 iframe 内部再次加载 SDK 代码收集 iframe 内部的元素浏览、点击数据。 同普通网页加载 SDK 方式相同，将 SDK 复制到 iframe 标签内部即可完成 SDK 安装。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://growingio.gitbook.io/docs/developer-manual/sdkintegrated/web-js-sdk/faq/faq-3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
