mozilla
Your Search Results

    FMRadio.frequency

    Non-standard
    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.

    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: kscarfone, teoli, Jeremie
    Last updated by: teoli,