[HTML5] frameset 대체

반응형
<script type="text/javascript">
<!--
var webUrl = "http://www.naver.com";
var mobileUrl = "http://m.naver.com";
window.onload = function() 
{ 
 window.document.body.ownerDocument.clear();
 var ifrmFlag = document.getElementById('ifrm');
 if(ifrmFlag != null && ifrmFlag != "null" && ifrmFlag != "")
 {
 document.body.removeChild(ifrmFlag);
 }
 var iframe = document.createElement("iframe");
 iframe.id = "ifrm";
 iframe.src = webUrl;
 iframe.width = "100%";
 iframe.height = "100%";
 iframe.frameBorder = "0";
 iframe.scrolling = "no";
 document.body.appendChild(iframe);
};
//-->
</script>

<body topmargin="0" leftmargin="0">
</body>

 

반응형
LIST

댓글()