We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE



The tnf property of the MozNDEFRecord interface contains the Type Name Format (3-bit field) of the record. This field is required.

Possible tnf values are:

  • tnf_empty: 0x0
  • tnf_well_known: 0x1
  • tnf_mime_media: 0x2
  • tnf_absolute_uri: 0x3
  • tnf_external_type: 0x4
  • tnf_unknown: 0x5
  • tnf_unchanged: 0x6
  • tnf_reserved: 0x7


readonly attribute octet tnf;


var tnf     = 0x1;                                                    // NFC Forum Well Known type
var type    = new Uint8Array(NfcUtils.fromUTF8("U"));                 // URL type
var id      = new Uint8Array(NfcUtils.fromUTF8(""));                  // id
var payload = new Uint8Array(NfcUtils.fromUTF8("\u0003mozilla.org")); // URL data, with a short record prefix 0x3 replacing http://

var ndefRecords = [new MozNDEFRecord(tnf, type, id, payload)];


An octet.


The NFC implementation in Gecko follows the NFC Forum specifications.

Browser compatibility

Supported in Firefox OS 2.0 for certified-apps.
Available in privileged apps as of Firefox OS 2.2.

See also

Document Tags and Contributors

 Contributors to this page: fscholz, chrisdavidmills, teoli
 Last updated by: fscholz,