JAVASCRIPT 50
Iframe.js Guest on 27th July 2020 12:12:40 AM
  1. S.iframe=function(b,c){this.obj=b;this.id=c;var a=get("sb-overlay");this.height=b.height?parseInt(b.height,10):a.offsetHeight;this.width=b.width?parseInt(b.width,10):a.offsetWidth};S.iframe.prototype={append:function(a,c){var b='<iframe id="'+this.id+'" name="'+this.id+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility:hidden" onload="this.style.visibility=\'visible\'" scrolling="auto"';if(S.isIE){b+=' allowtransparency="true"';if(S.isIE6){b+=" src=\"javascript:false;document.write('');\""}}b+="></iframe>";a.innerHTML=b},remove:function(){var a=get(this.id);if(a){remove(a);if(S.isGecko){delete window.frames[this.id]}}},onLoad:function(){var a=S.isIE?get(this.id).contentWindow:window.frames[this.id];a.location.href=this.obj.content}};

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.