Home > Web Front-end > H5 Tutorial > 6 recommended articles about window.postMessage

6 recommended articles about window.postMessage

黄舟
Release: 2017-06-14 15:56:46
Original
1588 people have browsed it

This article mainly introduces the detailed explanation of HTML5 window.postMessage and cross-domain, which is of great practical value. Friends who need it can refer to it. In the previous article, we talked about the browser same-origin policy, that is, blocking pages from different domains. to access each other's methods and attributes, and elaborate on the solutions proposed to solve the cross-domain problem of the same-origin policy: subdomain proxy, JSONP, CORS. This article will elaborate on HTML5 window.postMessage. With the postMessage API, cross-domain communication can be achieved between documents in a safe and controllable manner. Third-party JavaScript code can also communicate with external documents loaded in iframes. HTML5 window.postMessage APIHTML5 window.postMessage is a secure, event-based messaging API. PostMessage sends a message. Call the postMessage method in the source window where the message needs to be sent to send the message. Source window The source window can be a global window object, or it can be the following type of window: document window

1. HTML5 window.postMessage and cross-domain example tutorial

6 recommended articles about window.postMessage

Introduction: This article mainly introduces the detailed explanation of HTML5 window.postMessage and cross-domain, which is of great practical value for friends who need it. You can refer to

2. Share the basic usage of postMessage API in HTML5

6 recommended articles about window.postMessage

Introduction: window.postMessage is often used by people for cross-domain data transfer. The following will introduce the basic usage tutorial of postMessage API in HTML5. Friends who need it can refer to it

3. Use postMessage in HTML5 to transfer data between two web pages

6 recommended articles about window.postMessage

Introduction: It is estimated that few people know that there is a window.postMessage API in HTML5 APIS. The function of window.postMessage is to allow programmers to send data information between two windows/frames across domains. Basically, it's like cross-domain AJAX, but instead of interacting between the browser and the server, it communicates between two clients. Let's take a look at how window.postMessage works. In addition to IE6

4. HTML5 window.postMessage API

Introduction: window.postMessage is a little-known HTML5 API . window.postMessage allows cross-domain data messages to be sent between two windows/frames. Essentially, window.postMessage is a cross-domain serverless shim for Ajax. Let's take a look at window.postMessage...,.

5. JavaScript uses HTML5’s window.postMessage to implement cross-domain communication example_javascript skills

Introduction: This article mainly This article introduces an example of JavaScript using HTML5's window.postMessage to implement cross-domain communication. Friends who need it can refer to

6. HTML5 window/iframe cross-domain messaging API introduction_html5 Tutorial Tips

#Introduction: window.postMessage allows cross-domain transfer of data and information between multiple windows/frames. The following is an introduction to how window.postMessage works and how to use it in FireFox, IE8+, Opera, Safari and Chrome

[Related Q&A recommendations]:

javascript - How to use web API Worker?

Have questions about the security issues of html5 postMessage?

The above is the detailed content of 6 recommended articles about window.postMessage. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template