This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

This API is available on Firefox OS for internal applications only.


WebSMS API 可讓網頁內容能建立、傳送、接收文字簡訊 (SMS) 或多媒體訊息 (MMS)。

透過 window.navigator.mozSms (將回傳 MozSmsManager 物件),或是 window.navigator.mozMobileMessage (將回傳 MozMobileMessageManager 物件),均可存取此 API。

DOM 介面

SMS 介面

MMS 與 SMS 介面



此 API 目前尚未成為標準規格。可至 W3C 的 System Application Working Group 參與相關討論。

Specification Status Comment
Messaging API Obsolete Editor Draft (WIP).



We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support No support No support No support No support
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support 12.0 (12.0) No support No support No support


  • WebSMS 預設為停用,可將 dom.sms.enabled 設定為 true 即可啟用。
  • 允許使用 WebSMS API 的主機名稱,均以逗號區隔,且必須透過 dom.sms.whitelist 指定之。此字串預設為空白。
  • WebSMS 僅能用於 Firefox OS (B2G) 的 Certified Apps 之上。
  • 從 Firefox OS 1.1 開始,即可使用 MMS。