Navigator.mozHasPendingMessage()

Summary

This method is used to know if there are pending messages of a given type (true) ot not (false).

When navigator.mozSetMessageHandler() is used to set a handler for the type, the pending messages will be asynchronously delivered to the application.

Syntax

JavaScript
navigator.mozHasPendingMessage(type);

Parameters

type
A string representing the kind of message the app wants to register a handler function for. For a full list of available types, see navigator.mozSetMessageHandler().

Return

A boolean.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support No support No support No support No support No support
Feature Android Firefox OS Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support 1.0 No support No support No support No support

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/navigator/mozhaspendingmessage

alarm API B2G Firefox OS Method Reference Web Activities WebAPI