Where to look documentation DOM manipulation for frappe?

You would use the Page API, which is documented here: Page API

Once a page is created, you can roll out any any arbitrary html you’d like.