Is it possible, to place an <iframe> or an <object> directly to a construct layer? I have a sprite behind the "iframe"-layer and a sprite over the "iframe"-layer.
var elem = document.createElement("object");
elem.width = "600px";
elem.height = "300px";
elem.data = "https://www.youtube.com/embed/GlIzuTQGgzs";
// I want the iframe or object to attach to a layer, is it possible?
And other question:
I'm only found the canvas-div:
Develop games in your browser. Powerful, performant & highly capable.