Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which API allows scripts in a document from one server to exchange messages with scripts?

  2. A.

     Cross-Document Messaging API

    B.

     Web application API

    C.

     Both Cross-Document Messaging API & Web application API

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The Cross-Document Messaging API allows scripts in a document from one server to exchange messages with scripts in a document from another server. This works around the limitations of the same-origin policy in a secure way. Each message that is sent triggers a message event on the Window of the receiving document.


Be The First To Comment