Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

incrementInnerHtml

import { incrementInnerHtml } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";

increment the innerHTML of an Element

@example
// returns "elementId.innerHTML+='<p>hey!</p>'"
incrementInnerHtml("elementId", element("p", { children: "hey", closed: true }))
function incrementInnerHtml(element: string, html: string | string[]): string;
§
incrementInnerHtml(element: string, html: string | string[]): string
[src]

§Parameters

§
element: string
[src]

a variable name referring to an HTML element, it can be the element ID according to the "Named access on the Window object" rule of the HTML specification.

§
html: string | string[]
[src]

§Return Type

§
string
[src]