This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.
MozNFC is the top level API for operating in NFC Reader/Writer mode, NFC P2P mode and NFC Card Emulation mode.
Note: This interface is accessed via the
onpeerfoundevent callback function is called when a NFC device is detected. Available in Firefox OS 2.2+.
onpeerlostevent callback function is called when the peer object detected in onpeerfound is no longer available to the application (for example when the peer device moves out of range.)
ontagfoundevent callback function is called when a NFC Tag is detected. Available in Firefox OS 2.2+.
ontaglostevent callback function is called when the tag object detected in ontagfound is no longer available to the application. (for example when the tag moves out of range) Available in FirefoxOS 2.2+.
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
|Not supported||Not supported||Not supported||Not supported|
|Feature||Android||Firefox Mobile (Gecko)||Firefox OS (Gecko)||IE Phone||Opera Mobile||Safari Mobile|
|Basic support||Not supported||Not supported||2.0 moz ||Not supported||Not supported||Not supported|
 Available in privileged apps as of Firefox OS 2.2; certified-only before that.