title: Window object in nativescript
body: <p>I need to create a window object so that the external file, which is loaded inside iframe, can call nativescript function. </p>
  
  <p>I, specifically need window object because the file I am loading can be any file that follows conformant (SCORM) related to LMS.</p>
  
  <p><strong>Edit</strong> :
  The file I have loaded is a SCORM conformant file. They search for window.API object/window.parent.API and so on, for starting communication with the container in which they have been loaded. I can't alter that file.</p>
  
  <p>Tell me if more details needed.</p>