DEV Community

Discussion on: Mastering the Javascript DOM 🎡

Collapse
 
efpage profile image
Eckehard

Check out DML, the "Document Makeup Library" if you want to play on the DOM faster. Will save you about 80% of your code.

This will create a button, append it to the DOM and install a click-function:

button("hit-me").onclick(()=> alert("button clicked"))
Enter fullscreen mode Exit fullscreen mode
Collapse
 
shivams1007 profile image
Shivam Singh

thanks for letting me know