logologo
Get Started
Tutorials
Guide
Development
Plugins
API
Home
English
简体中文
日本語
한국어
Español
Português
Deutsch
Français
Русский
Get Started
Tutorials
Guide
Development
Plugins
API
Home
logologo
RunJS Overview
Importing Modules
Rendering in Container

Global Variables

window
document
navigator

ctx

ctx.blockModel
ctx.collection
ctx.collectionField
ctx.dataSource
ctx.dataSourceManager
ctx.element
ctx.exit()
ctx.exitAll()
ctx.filterManager
ctx.form
ctx.getModel()
ctx.getValue()
ctx.getVar()
ctx.i18n
ctx.importAsync()
ctx.initResource()
ctx.libs
ctx.location
ctx.logger
ctx.makeResource()
ctx.message
ctx.modal
ctx.model
ctx.notification
ctx.off()
ctx.on()
ctx.openView()
ctx.render()
ctx.request()
ctx.requireAsync()
ctx.resource
ctx.route
ctx.router
ctx.setValue()
ctx.sql
ctx.t()
ctx.view
Previous PageRendering in Container
Next Pagedocument

#window

The following properties can be accessed directly via window:

  • setTimeout / clearTimeout
  • setInterval / clearInterval
  • console
  • Math
  • Date
  • FormData
  • addEventListener
  • open (Only http:, https:, or about:blank are allowed)
  • location (Read-only, supports secure navigation)
  • navigator

Only basic and secure DOM query and creation capabilities are supported:

  • createElement(tagName)
  • querySelector(selectors)
  • querySelectorAll(selectors)