DEV Community

Cover image for 🧩 Code Bits => Window and Document
Calvin
Calvin

Posted on

1

🧩 Code Bits => Window and Document

Window is a global object of JavaScript while document is a property of the window object.

Window includes the following and more:

🔵 Global functions
🔵 Location
🔵 History
🔵 Web Components
🔵 setTimeout
🔵 XML-Http Request
🔵 Console
🔵 LocalStorage

Document includes the following:

🔵 DOM (Document Object Model) of the page
🔵 Methods that traverse the DOM

Source


Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay