• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS APIs
  5. Navigator (Firefox OS extensions)
  6. Navigator.mozNfc

Navigator.mozNfc

In This Article
  1. Syntax
    1. Return value
  2. Specifications
  3. Browser compatibility
  4. See also

The mozNfc property returns a MozNFC object that can be used to access Firefox OS's NFC functionality: Near Field Communication (NFC) is a short range radio technology used to exchange data and tags between mobile devices by tapping them together or moving them close to each other.

For more information on NFC, read Using the NFC API and study the NFC reference.

Syntax

var nfc = navigator.mozNfc;

Return value

navigator.mozNfc returns a MozNFC object.

Specifications

The NFC implementation in Gecko follows the NFC Forum specifications.

Browser compatibility

  • Desktop
  • Mobile
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support

No support

No support No support No support No support
Feature Android Firefox Mobile (Gecko) Firefox OS (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support No support No support 2.0 moz [1] No support No support No support

[1] Available in privileged apps as of Firefox OS 2.2; certified-only before that.

See also

  • Using the NFC API
  • Using the NFC emulator
  • Introduction to NFC (fairly long reference doc, featuring general NFC terms, and some Nokia platform specifics.)

Document Tags and Contributors

Tags: 
  • API
  • Device API
  • Firefox OS
  • NFC API
  • Property
  • Reference
  • Web NFC
 Contributors to this page: chrisdavidmills, teoli, fscholz, allstars.chh, MHasan
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:09:22 AM
See also
  1. Archive
  2. Related pages for Firefox OS
    1. MozAlarmsManager
    2. MozMobileNetworkInfo
    3. MozWifiP2pGroupOwner