Use the following JavaScript in your iframe tag as
<iframe onresize=reSize() id='ifrm' src='test.html'>
<SCRIPT LANGUAGE=javascript>
<!--
function reSize()
{
try{
var oBody = ifrm.document.body;
var oFrame = document.all("ifrm");
oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight -
oBody.clientHeight);
oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth -
oBody.clientWidth);
}
//An error is raised if the IFrame domain != its container's domain
catch(e)
{
window.status = 'Error: ' + e.number + '; ' + e.description;
}
}
//-->
</SCRIPT>
cheers,
Shailesh
"Paul Fi" <na*******@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP09.phx.gbl...
i want the scrollbars of my aspx page to be the scrollbars of the iframe
i set inside the page
is that possible?
or is there any workaround on this issue?
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!