Share
VIDEOS 1 TO 50
Implementing Local Storage and Cross Document Messaging in HTML5
Implementing Local Storage and Cross Document Messaging in HTML5
Published: 2015/03/05
Channel: Robin Nixon
Getting Started with Firebase Cloud Messaging on the Web - Firecasts
Getting Started with Firebase Cloud Messaging on the Web - Firecasts
Published: 2016/10/17
Channel: Firebase
HTML5 Web Messaging API Demo: Multi-window 2D Canvas Game
HTML5 Web Messaging API Demo: Multi-window 2D Canvas Game
Published: 2013/03/24
Channel: Rodrigo Silveira
MESSAGING THE FUTURE!?! - Deep Web Browsing 117
MESSAGING THE FUTURE!?! - Deep Web Browsing 117
Published: 2017/09/25
Channel: SomeOrdinaryGamers
Solace
Solace's Web Messaging Solution
Published: 2013/02/15
Channel: Solace
Internet Safety PSA -- Instant Messaging
Internet Safety PSA -- Instant Messaging
Published: 2008/05/09
Channel: ProtectChildrenCA
Lunch & Learn - Real Time Web Messaging with SignalR
Lunch & Learn - Real Time Web Messaging with SignalR
Published: 2013/04/30
Channel: Logical Advantage
Using Web Messaging To Increase Conversions
Using Web Messaging To Increase Conversions
Published: 2017/04/19
Channel: Money Mike
Web Design Speed art + Speed Code - Client Messaging Website
Web Design Speed art + Speed Code - Client Messaging Website
Published: 2016/12/27
Channel: Caler Edwards
WebSockets: Intro To Messaging
WebSockets: Intro To Messaging
Published: 2017/11/10
Channel: PRACTICAL PYTHON
Web Messaging 101 Webinar
Web Messaging 101 Webinar
Published: 2016/03/01
Channel: Braze
A message from George Orwell to everyone on the Internet
A message from George Orwell to everyone on the Internet
Published: 2015/12/26
Channel: thejuicemedia
21  HTML5 Web messaging
21 HTML5 Web messaging
Published: 2017/11/09
Channel: TechAid24 Tutorials
Website Pages Web Messaging Plugin
Website Pages Web Messaging Plugin
Published: 2014/01/14
Channel: clifton calle
Make your Own Instant Messenger - Introduction
Make your Own Instant Messenger - Introduction
Published: 2015/07/21
Channel: howCode
Firebase Cloud Messaging step by step
Firebase Cloud Messaging step by step
Published: 2016/06/15
Channel: TNT Studios
Getting started with IBM Mobile Web Push - Mobile Messaging for marketing - Part 1
Getting started with IBM Mobile Web Push - Mobile Messaging for marketing - Part 1
Published: 2014/02/25
Channel: Bob Balfe
Huawei M835 lock screen, dialer, web, messaging, youtube app
Huawei M835 lock screen, dialer, web, messaging, youtube app
Published: 2011/07/19
Channel: pavy415
Solace
Solace's Web Messaging Solution
Published: 2012/03/19
Channel: Solace
Web Messaging Product Overview
Web Messaging Product Overview
Published: 2016/11/16
Channel: Christopher Radanovic
Updated Deep Web Links of Email, Messaging and Hacking Sites
Updated Deep Web Links of Email, Messaging and Hacking Sites
Published: 2017/08/21
Channel: Gadget Gyani
Louis CK   Instant Messaging
Louis CK Instant Messaging
Published: 2014/11/09
Channel: Web Conn
The most useless messaging web app ever made
The most useless messaging web app ever made
Published: 2017/08/21
Channel: Jeymz Simmons
How-to Install Web Messaging for LabVIEW from the VIPM Website
How-to Install Web Messaging for LabVIEW from the VIPM Website
Published: 2014/08/10
Channel: Chris R. Larson
Pikabu Web Messaging
Pikabu Web Messaging
Published: 2016/07/27
Channel: Михаил Ребров
Ceasys - Web Messaging - The future of Comment Boards!
Ceasys - Web Messaging - The future of Comment Boards!
Published: 2008/04/25
Channel: sysaec
Messaging and JMS Introduction
Messaging and JMS Introduction
Published: 2015/08/27
Channel: Bharath Thippireddy dot com
Mobile and Web Messaging Messaging Protocols for Web and Mobile Devices
Mobile and Web Messaging Messaging Protocols for Web and Mobile Devices
Published: 2017/04/01
Channel: Lance Tran
SMS Messaging, Bulk Voice, Web Messaging by Aadishesh
SMS Messaging, Bulk Voice, Web Messaging by Aadishesh
Published: 2014/03/28
Channel: Aadishesh Jabalpur
Comverse Web Converged Messaging
Comverse Web Converged Messaging
Published: 2010/11/09
Channel: ComverseInc
I
I'm a web based visual voice and messaging assistant - www.anixproject.com
Published: 2017/10/24
Channel: ANIXproject
ICTM1803 2017 Group 7 Section 4 | Instant Messaging : Whatsapp Web
ICTM1803 2017 Group 7 Section 4 | Instant Messaging : Whatsapp Web
Published: 2017/03/16
Channel: Muhammad Hazim Azizi Halmi
Android Studio Tutorial - Firebase Messaging with WebView
Android Studio Tutorial - Firebase Messaging with WebView
Published: 2017/10/04
Channel: EDMT Dev
Introducing Amazon Simple Queue Service (SQS) FIFO Queues – Messaging on AWS
Introducing Amazon Simple Queue Service (SQS) FIFO Queues – Messaging on AWS
Published: 2017/06/14
Channel: Amazon Web Services
Send Push Notifications in Angular with Firebase Cloud Messaging
Send Push Notifications in Angular with Firebase Cloud Messaging
Published: 2017/08/04
Channel: Angular Firebase
RAJ WEB SERVICES - Smart Messaging Service
RAJ WEB SERVICES - Smart Messaging Service
Published: 2016/01/17
Channel: Raj Web Services
Messaging Concepts and  Terminology
Messaging Concepts and Terminology
Published: 2015/08/28
Channel: Bharath Thippireddy dot com
WhatsApp web messaging client now available on internet browsers
WhatsApp web messaging client now available on internet browsers
Published: 2015/01/22
Channel: vidya reddy
Bluepulse to introduce its web-based mobile social messaging
Bluepulse to introduce its web-based mobile social messaging
Published: 2008/04/09
Channel: avingusa
New Political Web Ad Raising Concern Over Appropriate Messaging In Politics - Megyn Kelly
New Political Web Ad Raising Concern Over Appropriate Messaging In Politics - Megyn Kelly
Published: 2012/10/31
Channel: Mass Tea Party - Wake Up America!
free windows bulk group web sms sending messaging software online mobile text marketing gateway
free windows bulk group web sms sending messaging software online mobile text marketing gateway
Published: 2012/11/09
Channel: usbdatarecovery
Email to instant messaging to web conference
Email to instant messaging to web conference
Published: 2010/06/22
Channel: Chris Sparshott
Enabling and Viewing the Ultra Messaging Persistence Web-Monitor
Enabling and Viewing the Ultra Messaging Persistence Web-Monitor
Published: 2012/12/14
Channel: Informatica Support
AWS re:Invent 2016: Migrating Enterprise Messaging to the Cloud (ENT217)
AWS re:Invent 2016: Migrating Enterprise Messaging to the Cloud (ENT217)
Published: 2016/12/03
Channel: Amazon Web Services
Website Must-Haves #12: Messaging
Website Must-Haves #12: Messaging
Published: 2016/09/28
Channel: Design Angler Inc.
New DietMaster Web & Go Mobile Messaging Platform
New DietMaster Web & Go Mobile Messaging Platform
Published: 2014/03/06
Channel: jeskx250f
Web Push Notifications using Firebase Cloud Messaging by Himadri Ghosh
Web Push Notifications using Firebase Cloud Messaging by Himadri Ghosh
Published: 2018/01/23
Channel: ReactJS Bangalore
Web to Device Messaging
Web to Device Messaging
Published: 2017/08/18
Channel: StreetWise CADlink
mobile and web chat room messaging
mobile and web chat room messaging
Published: 2014/05/06
Channel: Diana Anters
Outlook Web Access , a messaging tool of MS Exchange mail client .
Outlook Web Access , a messaging tool of MS Exchange mail client .
Published: 2018/01/28
Channel: asta e1
NEXT
GO TO RESULTS [51 .. 100]

WIKIPEDIA ARTICLE

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Web Messaging or cross-document messaging, is an API introduced in the WHATWG HTML5 draft specification, allowing documents to communicate with one another across different origins, or source domains[1] while rendered in a web browser. Prior to HTML5, web browsers disallowed cross-site scripting, to protect against security attacks. This practice barred communication between non-hostile pages as well, making document interaction of any kind difficult.[1][2] Cross-document messaging allows scripts to interact across these boundaries, while providing a rudimentary level of security.

Requirements and attributes[edit]

Using the Messaging API's postMessage method, plain text messages can be sent from one domain to another, e.g. from a parent document to an IFRAME.[3] This requires that the author first obtain the Window object of the receiving document. As a result, messages can be posted to the following:[2]

  • other frames or iframes within the sender document's window
  • windows the sender document explicitly opens through JavaScript calls
  • the parent window of the sender document
  • the window which opened the sender document

The message event being received has the following attributes:

  • data - The data, or actual content, of the incoming message.
  • origin - The origin of the sender document. This typically includes the scheme, hostname and port. It does not include the path or fragment identifier.[1]
  • source - the WindowProxy of where the document came from (the source window).

postMessage is not a blocking call; messages are processed asynchronously.[4]

Example[edit]

Consider we want document A loaded from example.net to communicate with document B loaded from example.com into an iframe or popup window.[1] The JavaScript for document A will look as follows:

var o = document.getElementsByTagName('iframe')[0];
o.contentWindow.postMessage('Hello B', 'http://example.com/');

The origin of our contentWindow object is passed to postMessage. It must match the origin of the document we wish to communicate with (in this case, document B). Otherwise, a security error will be thrown and the script will stop.[3] The JavaScript for document B will look as follows:

function receiver(event) {
	if (event.origin == 'http://example.net') {
		if (event.data == 'Hello B') {
			event.source.postMessage('Hello A, how are you?', event.origin);
		}
		else {
			alert(event.data);
		}
	}
}
window.addEventListener('message', receiver, false);

An event listener is set up to receive messages from document A. Using the origin property, it then checks that the domain of the sender is the expected domain. Document B then looks at the message, either displaying it to the user, or responding in turn with a message of its own for document A.[1]

Security[edit]

Poor origin checking can pose a risk for applications which employ cross-document messaging.[5] To safeguard against malicious code from foreign domains, authors should check the origin attribute to ensure messages are accepted from domains they expect to receive messages from. The format of incoming data should also be checked that it matches the expected format.[1]

Support[edit]

Support for cross-document messaging exists in current versions of Internet Explorer, Mozilla Firefox, Safari, Google Chrome, Opera, Opera Mini, Opera Mobile, and Android web browser.[6] Support for the API exists in the Trident, Gecko, WebKit and Presto layout engines.[7]

See also[edit]

References[edit]

External links[edit]

Disclaimer

None of the audio/visual content is hosted on this site. All media is embedded from other sites such as GoogleVideo, Wikipedia, YouTube etc. Therefore, this site has no control over the copyright issues of the streaming media.

All issues concerning copyright violations should be aimed at the sites hosting the material. This site does not host any of the streaming media and the owner has not uploaded any of the material to the video hosting servers. Anyone can find the same content on Google Video or YouTube by themselves.

The owner of this site cannot know which documentaries are in public domain, which has been uploaded to e.g. YouTube by the owner and which has been uploaded without permission. The copyright owner must contact the source if he wants his material off the Internet completely.

Powered by YouTube
Wikipedia content is licensed under the GFDL and (CC) license