...

View Full Version : JQuery scroll to top of iframe parent



htcilt
09-27-2010, 04:44 PM
Hi,

I have an iframe with a feeback form in it. After clicking submit, I want use parent window to scroll to the top. I know I can scroll to the top of a page with:


$(\'html, body\').animate({scrollTop:0}, \'slow\');

However, this will only scroll the contents of the iframe, not the parent page. Any suggestions? :)

tfburges
09-27-2010, 05:36 PM
I'm unfamiliar with jQuery, as I've created my own frameworks, but try:

window.top.window.animate({scrollTop:0}, \'slow\');



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum