site_address is a parameter that's passed to the page when loaded.
var site = 'http://' + 'localParameter("site_address")'
window.location = site
Now, I need to make this iframe scroll down by like 50 pixels once the page is loaded. How can I do this?
By scrolling do you mean move? Scrolling is what you do with scroll bars, if you want the element (in this case an iframe) to be in a different spot, its move.
I only ask as scrolling could be very difficult, if not impossible (I have never had to do it so don't know, would have to look). Where as move, while tricky is a bit more doable.
I think the better question, is why you would want to do this?
Try using an <a> (anchor) element around the element where you want the top of the frame to start then reference it by using the name attribute like this:
then when you start the iframe call the URL like this:
<a name="whatever">START HERE<a>
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)