Copy link to clipboard
Copied
How can I insert an iframe in Adobe canvas, is there any javascript code?
It's just standard JavaScript. Literally thousands of tutorials out there if you'd bother to look. Like, a single line as a basic start point:
canvas.parentNode.appendChild(document.createElement("iframe"));
Copy link to clipboard
Copied
You can't insert an iframe INTO a canvas element. The best you can do is create an iframe in the DOM and float it over the canvas so it looks like it's part of the canvas.
Copy link to clipboard
Copied
Thank you very much, could you tell me how you can do that?
Copy link to clipboard
Copied
It's just standard JavaScript. Literally thousands of tutorials out there if you'd bother to look. Like, a single line as a basic start point:
canvas.parentNode.appendChild(document.createElement("iframe"));