码迷,mamicode.com
首页 > 其他好文 > 详细

动态iframe 分享

时间:2019-01-29 17:59:59      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:load   document   tee   row   ext   geturl   div   iframe   lte   

 function createIframe() {
        
             var i = document.createElement("iframe");
             i.src = "/RSK/RskBookFilterManage.aspx?_method=filterContent4RiskBook&riskBookId=" + UTIL.getUrlParam("riskBookId") + "&k=" + Math.random()
             i.id = "RskBookContentCfg";
             i.scrolling = "auto";
             i.setAttribute(frameBorder, 0); 
             i.style.cssText = border: 0 none;; 
             //i.frameborder ="0";
             i.width ="795px";
             i.height ="700px";
             document.getElementById("iframe2").appendChild(i);


             var i2 = document.createElement("iframe");
             i2.src = "/RSK/RskSumaryInfomationManage.aspx";
             i2.id = "RskBookContentCfg";
             i2.scrolling = "auto";
             i2.setAttribute(frameBorder, 0); 
             i2.style.cssText = border: 0 none;; 
             //i2.frameborder ="0";
             i2.width ="795px";
             i2.height ="700px";
             document.getElementById("iframe3").appendChild(i2);
         };
   //Check for browser support of event handling capability
  if (window.addEventListener) window.addEventListener("load", createIframe, false);
  else if (window.attachEvent) window.attachEvent("onload", createIframe);
  else window.onload = createIframe;

 

动态iframe 分享

标签:load   document   tee   row   ext   geturl   div   iframe   lte   

原文地址:https://www.cnblogs.com/kexb/p/10334114.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!