1) How to find the parent page element in an iframe:
$('#id', window.parent.document)
2) Call the methods and variables defined in the parent page in the iframe:
parent.method
parent.value
3) Example
1. Parent page
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="IframeDemo._Default" %>
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn