Hi guys,
I don't want to use iframes, but it is really the principle that I am going with. I want to have a frame with another website in and basically show a pre-determined part of that page (via scrolling). I have been trying all night to get a simple script going and I was wondering what I am doing wrong. Here is my code:
I don't want to use iframes, but it is really the principle that I am going with. I want to have a frame with another website in and basically show a pre-determined part of that page (via scrolling). I have been trying all night to get a simple script going and I was wondering what I am doing wrong. Here is my code:
Code:
<script type="text/javascript">
function scroller() {
document.getElementById('myiframe').scroll(100,0);
}
</script>
<body onload="scroller()">
<iframe id="myiframe" scrolling="yes" height="500px" width="1000px" src="http://mytarget.com/"></iframe>
</body>
Comment