html-dom

Common tasks of managing HTML DOM with vanilla JavaScript. Give me 1 ⭐if it’s useful.

Github星跟踪图

htmldom.dev

Story

Web development goes very fast. I still remember the moments when starting to use jQuery, Prototype,
script.aculo.us, Zepto and many more.

Nowadays, even if our application is powered by mordern tools such as Angular, Vue, React, Svelte, .etc, we have to deal with DOM.
The frameworks encapsulate and hide the DOM management directly, but still give us a door to work with DOM via ref, event handlers.

If you develop or use a web component in any framework, you have to work with DOM at a certain level.

Knowing the browser DOM APIs and how to use them play an important role in web development.
A website introducing the APIs, well-known problems, most popular questions could be very useful.

Features

  • No external library. Only native browsers' APIs
  • Small and easy to understand examples
  • Live demos
  • Many tips and good practices included
  • Many real use cases
  • Work with the modern browsers. Try to support IE 11

HTML DOM

Running it on local

  1. Clone the project:
$ git clone https://github.com/phuoc-ng/html-dom
  1. Install the dependencies:
$ cd html-dom
$ npm install
  1. Run it on the local:
$ npm run dev-server

Open http://localhost:1234 in your browser to see it in action.

Contributing

Pull requests are welcomed. If you see any problem with the example on your browser, please let me know by creating an issue or submit a pull request.

About

This project is developed by Nguyen Huu Phuoc. I love building products and sharing knowledge.

Be my friend on

Products

You might be interested in my products:, Product, Description, -------------------------------------------------------, -------------------------------------------------------------------, 01. 1 LOC, Favorite JavaScript utilities in single line of code, 02. Blur Page, A browser extension to hide sensitive information on a web page, 03. CSS Layout, A collection of popular layouts and patterns made with CSS, 04. Fake Numbers, Generate fake and valid numbers, 05. Form Validation, The best validation library for JavaScript, 06. HTML DOM, How to manage HTML DOM with vanilla JavaScript, 07. React PDF Viewer, A React component to view a PDF document

主要指标

概览
名称与所有者phuocng/html-dom
主编程语言MDX
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2020-02-15 08:57:12
推送于2024-06-06 13:29:06
最后一次提交2023-12-19 20:53:34
发布数1
最新版本名称react-based-website (发布于 )
第一版名称react-based-website (发布于 )
用户参与
星数6.6k
关注者数99
派生数458
提交数555
已启用问题?
问题数57
打开的问题数36
拉请求数220
打开的拉请求数6
关闭的拉请求数10
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?