Force Top of Page to Display
Hi all -
Have an odd behavior on one of my pages (http://www.jcn-associates.com/visual-foxpro.htm). Seems it's the only page where upon navigation to it it displays the bottom of the page rather than the top. Not sure if it's one of the widgets or placeholder code, but am looking for a way to force the top-of-page to display.
TIA
Alex E. Luyando J.C.N. Associates, L.L.C. Microsoft Visual FoxPro Database Application Design and Development | IT Project Management
Re: Force Top of Page to Display
I guess it is the 'The UniversalThread' iframe that forces itself into view somehow.
Re: Force Top of Page to Display
I could see that. I'm hoping there's a way I can force the overall page to scroll to the top once all content is loaded.
Thanks for the reply.
Re: Force Top of Page to Display
You can add
onload="window.scrollTo(0,0);"
to your iframe, but that will result in a jump down and jump back to top.
I have not found a way to prevent the jump down other than adding (for example)
sandbox="allow-forms"
but that will not work in IE9 and older and will stop the IFRAME from working correctly.
Re: Force Top of Page to Display
Just tried another thing and it worked for me in Firefox and IE9.
Try applying a fast reveal animation to the placeholder.
Re: Force Top of Page to Display
Try adding a top anchor, to the url, this should work.
Re: Force Top of Page to Display
Thanks, Siran. I tried your approach and it worked.
Thanks to all who replied as well!
________________
_____/ Regards,
____/ al