The DOM is accessible from WASM, Javascript functions can be imported and called just like regular functions. In fact, that's also currently the only way to access other APIs like WebGL from WASM.
The DOM is accessible from WASM, Javascript functions can be imported and called just like regular functions. In fact, that's also currently the only way to access other APIs like WebGL from WASM.