मैं अपना आईफ्रेम विंडो कैसे भर सकता हूं और कोई स्क्रॉलबार प्रदर्शित नहीं कर सकता?आईफ्रेम के साथ विंडो भरें और स्क्रॉलबार नहीं दिखाएं?
यह IE6 के लिए काम करता है, मैं यह सभी ब्राउज़रों यदि संभव हो तो के लिए काम करने के लिए प्राप्त करना चाहते हैं:
<iframe name=iframe1 src="theSiteToShow.html" width="100%" height="100%" frameborder="0" marginheight="10" marginwidth="10"></iframe>
<script type="text/javascript">
function resizeIframe() {
var height = document.documentElement.clientHeight;
height -= document.getElementById('frame').offsetTop;
// not sure how to get this dynamically
height -= 20; /* whatever you set your body bottom margin/padding to be */
document.getElementById('frame').style.height = height +"px";
};
document.getElementById('frame').onload = resizeIframe;
window.onresize = resizeIframe;
</script>
'फ्रेमसेट' का उपयोग करें। ;) – graphicdivine