The ontaglost event handler of the MozNFC interface handles the taglost event, which is fired when the MozNFCTag object received in MozNFC.ontagfound is no longer available or not in proximity (e.g., the NFC tag moves out of range.)
Syntax
attribute EventHandler ontaglost;