Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternative to 'bottom of page' function 1

Status
Not open for further replies.

ChrisRChamberlain

Programmer
Mar 23, 2000
3,392
0
0
GB
Hi all

Have an application that generates HTML output as a means of monitoring an application process, which subsequently displays in a webbrowser control on a form.

The user need to be viewing the last line of the HTML page each time a new page is created and the webbrowser control refreshed.

The following
Code:
<body onload="goBottom();">

<script type="text/javascript">

function goBottom() {
location.href = "test.html#bottom";
}

</script>
followed by
Code:
<span id="bottom"></span>
at the bottom of the page works.

However this does require Javascript to be enabled.

Any alternatives. please?

TIA

FAQ184-2483​
Chris [pc2]
PDFcommander.com
motrac.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top