Functiondojo.setContext

<script src="../../js/dojo.js"></script>
defined in dojo/_base/window.js

changes the behavior of many core Dojo functions that deal with namespace and DOM lookup, changing them to work in a new global context (e.g., an iframe). The varibles dojo.global and dojo.doc are modified as a result of calling this function and the result of dojo.body() likewise differs.

Usage

function (/*Object*/ globalObject, /*DocumentElement*/ globalDocument) (view source)
parametertypedescription
globalObjectObject 
globalDocumentDocumentElement