Scroll up iframe

Hi,
This is a bit hard to explain so please first check out the graphic here:
http://www.jappz.com/diagram.jpg

Ok? cool.

Now the explanation, as you can see from that graphic, I two frames (top,bottom) and an iframe in the bottom frame, in the IFrame I am displaying forms etc...as you can see the iframe does not take the whole page but is only on half of the bottom frame...to see the other half you have to scrool the bottom frame.
The problem is when i have forms in the iframe and the user scrolls the bottom frame and enters info into the form, when i write something like "form accepted" after processing it show right on top of the iframe and the user does not see it tell he scrolls the bottom frame to the top....

is there any way after submitting the form in the iframe that I can scroll the bottom frame to the top?

Thanks,
Mag
LVL 2
mag1c1anAsked:
Who is Participating?
 
archrajanCommented:
This might help
 parent.scrollTo(0,0)
which will scroll to the top of the page when the page loads...
0
 
archrajanCommented:
oops, sorry if ur calling this from the iframe itself then try to use

self.scrollTo(0,0)
0
 
mag1c1anAuthor Commented:
Where and how do i put that?
like this: <script> self.scrollTo(0,0) </script>
??

Thanks,
Mag
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
archrajanCommented:
<body onload = "self.scrollTo(0,0)">
in the iframe body tag

or
<script>
self.scrollTo(0,0)
</script>

and place it in the iframe source
0
 
mag1c1anAuthor Commented:
nope, not working....any other ideas?

Thanks,
Mag
0
 
mag1c1anAuthor Commented:
ok..the first one worked :-)

Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.