GithubHelp home page GithubHelp logo

dom-manupulation's Introduction

Dom Manupulation

What is DOM

  • DOM - Document Object Model
  • Structured representation of an HTML Document
  • The DOM is used to connect webpages to script like JavaScript
  • For each HTML element, there is Object in the DOM that we can access and interact with.

Event and Event Listener

  • Events: Notification that are sent to notify the code that something happened on the webpage.
  • Example: clicking a button, resizing a window, scrolling down or pressing a key
  • Event Listener: A function that performs an action based on a certain event. It waits for a specific event to happen.

Callback Function

  • A function that is called by another function. We pass callback function as a parameter to the caller function without ()

Anonymous function

  • A function that doesn't have a name, we cannot reuse the anonymous function.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.