In the current proposal there is no way for WebAssembly to directly access the DOM (or any other &quot;Web API&quot; objects).<p>Basically you will need to drop back down into javascript and handle that there (basically how asm.js does it now).<p>But there is a proposal to eventually integrate direct DOM access into Web Assembly, but that&#x27;s for after they get it up and running.