Link to home
Start Free TrialLog in
Avatar of mag1c1an
mag1c1an

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of archrajan
archrajan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of archrajan
archrajan

oops, sorry if ur calling this from the iframe itself then try to use

self.scrollTo(0,0)
Avatar of mag1c1an

ASKER

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

Thanks,
Mag
<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
nope, not working....any other ideas?

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

Thanks!