cache of iframes
var queue = []; this.pop = function(){ var iframe; if(queue.length){ iframe = queue.pop(); iframe.style.display=""; }else{ if(dojo.isIE){ var html="<iframe src='javascript:\"\"'" + " style='position: absolute; left: 0px; top: 0px;" + "z-index: -1; filter:Alpha(Opacity=\"0\");'>"; iframe = dojo.doc.createElement(html); }else{ iframe = dojo.doc.createElement("iframe"); iframe.src = 'javascript:""'; iframe.className = "dijitBackgroundIframe"; } iframe.tabIndex = -1; // Magic to prevent iframe from getting focus on tab keypress - as style didnt work. dojo.body().appendChild(iframe); } return iframe; }; this.push = function(iframe){ iframe.style.display=""; if(dojo.isIE){ iframe.style.removeExpression("width"); iframe.style.removeExpression("height"); } queue.push(iframe); }