freifunkmanager/js/controller/frame.js

11 lines
194 B
JavaScript

define(function(){
return function(el,url){
var frame = document.createElement("iframe");
frame.src = url;
return function(){
el.innerHTML = "";
el.appendChild(frame);
};
};
});