Your Search Results


    この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

    « DOM Reference « Text

    This is an experimental technology
    Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.

    The Text() constructor returns a newly created Text object with the optional DOMString given in parameter as its textual content.


    text1 = new Text(); // Create an empty text node
    text2 = new Text("This is a text node");


    text = new Text("Test");


    Specification Status Comment
    DOM Living Standard Initial definition.

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support 28.0 24.0 (24.0) Not supported 15.0 Not supported
    Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support (Yes) 24.0 (24.0) Not supported 15.0 Not supported

    See also


    Document Tags and Contributors

    Contributors to this page: Reachmeatshivam, teoli
    最終更新者: Reachmeatshivam,