Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojo/_base/window.js

  • Provides:

    • dojo._base.window
  • Requires:

    • dojo.lib.kernel in common
  • dojo.doc

    • summary
      Alias for the current document. 'dojo.doc' can be modified
      for temporary context shifting. Also see dojo.withDoc().
    • description
      Refer to dojo.doc rather
      than referring to 'window.document' to ensure your code runs
      correctly in managed contexts.
    • example
      	n.appendChild(dojo.doc.createElement('div'));
    • alias - dojo.doc
    • type
      Object
  • dojo.body

    • returns
      Node
    • summary
      Return the body element of the document
      return the body object associated with dojo.doc
    • example
      	dojo.body().appendChild(dojo.doc.createElement('div'));
    • type
      Function
  • dojo.setContext

    • parameters:
      • globalObject: (typeof Object)
      • globalDocument: (typeof DocumentElement)
    • summary
      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
      <code>dojo.body()</code> likewise differs.
    • type
      Function
  • dojo.global

    • alias - dojo.global
  • dojo.withGlobal

    • parameters:
      • globalObject: (typeof Object)
      • callback: (typeof Function)
      • thisObject: (typeof Object)
      • cbArguments: (typeof Array)
    • summary
      Invoke callback with globalObject as dojo.global and
      globalObject.document as dojo.doc.
    • description
      Invoke callback with globalObject as dojo.global and
      globalObject.document as dojo.doc. If provided, globalObject
      will be executed in the context of object thisObject
      When callback() returns or throws an error, the dojo.global
      and dojo.doc will be restored to its previous state.
    • type
      Function
  • dojo.withDoc

    • parameters:
      • documentObject: (typeof DocumentElement)
      • callback: (typeof Function)
      • thisObject: (typeof Object)
      • cbArguments: (typeof Array)
    • summary
      Invoke callback with documentObject as dojo.doc.
    • description
      Invoke callback with documentObject as dojo.doc. If provided,
      callback will be executed in the context of object thisObject
      When callback() returns or throws an error, the dojo.doc will
      be restored to its previous state.
    • type
      Function
  • dojo._bodyLtr

    • alias - dojo._bodyLtr
  • dojo.isQuirks

    • alias - dojo.isQuirks
    • type
      bool
  • dojo._base.window

    • type
      Object
  • dojo._base

    • type
      Object
  • dojo

    • type
      Object