iFrames in p5 DOM

Hi guys,

just checking out the possibility of putting an iFrame in the html through the p5 DOM library. I've only written this so far just to test it out. The iFrame works, but does not load the url. (neither in the p5 IDE or loaded in the browser). Any suggestions?

var frame;

function setup() {
  createCanvas(windowWidth,windowHeight);

  frame = createElement("iframe","www.google.nl");
}
function draw() {
  frame.position(mouseX,mouseY);
}

Answers

Sign In or Register to comment.