Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

FMRadio.frequency

This API is available on Firefox or Firefox OS for installed or higher privileged applications.

Summary

The frequency property value returns the current radio frequency.

Syntax

var frequency = instanceOfFMRadio.frequency

Value

Return a number representing the radio frenquence express in MHz (MegaHertz).

Example

window.addEventListener('frequencychange', function () {
  console.log("The frequency has changed to: " + navigator.mozFMRadio.frequency + "MHz");
});

Specification

Not part of any specification.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, teoli, kscarfone, Jeremie
 Last updated by: chrisdavidmills,