Cross-domain IFRAME height self-adaption method
An adaptive and high-level technology, applied in the field of WEB development, can solve problems such as insufficient permissions and inability to operate across domains, and achieve the effect of solving the problem of cross-domain operations.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0018] like figure 1 As shown, the present invention specifically comprises the following steps:
[0019] Step 1: Create access main page m and transit page a under domain A (www.A.com), remove all HTML codes in the tags in page a;
[0020] key code:
[0021] iframe main page: m.html
[0022]
[0023] Step 2: Create a page b to be embedded under domain B (www.B.com), add a hidden IFRAME, set the width and height to 0, and then when the page is loaded, JS gets the height of the page and saves it, and Set the src attribute of the hidden IFRAME as a link to transfer page a under domain A, and at the same time, add the height of page b as a parameter to the back of the link for transmission;
[0024] key code:
[0025]
[0026] Step 3: Add an IFRAME tag to page m created in step 1, set the height to automatic, and its src attribute points to the access link of page b created in step 2 to be embedded;
[0027] key code:
[0028]
[0029] Step 4: Get the IFRAME object i...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com