I have a simple layout which only contains a Webviewer object. Depending on the amount of content in the Webviewer it might only show the first half of the page (it's actually using the "data:text/html," syntax with custom generated html).
I would like to, when the script navigates to this layout, to also scroll the web viewer to the bottom so they are seeing the most recent content.
Does anyone know of a way to scroll a web viewer via script?
thanks,
Steve
text lost in my message.....
This is JavaScript and part of your HTML for the viewer.
Try to add this to the bottom of your content (so it's loaded last), but above the final /body and /html tags:
<script type="text/javascript">window.scrollTo(0,document.body.scrollHeight);</script>
beverly