std1.0.0-beta-7 SafeC docs

std :: wasm::dom

Function std::dom_get_prop

#include <std/wasm/dom.h> source · definition

struct String dom_get_prop(int handle, const &char name)

Any property: String(el[name]) (empty for undefined/null), el[name] = value; the numeric forms convert with Number() / assign a number (0/1 works for boolean properties). DOM_DOCUMENT and DOM_WINDOW work too: dom_set_prop(DOM_DOCUMENT, "title", "...").