# Html template: emeded txt-file autoscrolling to the end

**URL:** <https://discourse.nodered.org/t/html-template-emeded-txt-file-autoscrolling-to-the-end/7142>\
**Category:** Dashboard\
**Created:** [22 January 2019 13:21 UTC](https://discourse.nodered.org/t/html-template-emeded-txt-file-autoscrolling-to-the-end/7142 "2019-01-22T13:21:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lippih](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@lippih](https://discourse.nodered.org/u/lippih)\
**Post date:** [22 January 2019 13:21 UTC](https://discourse.nodered.org/t/html-template-emeded-txt-file-autoscrolling-to-the-end/7142/1 "2019-01-22T13:21:56Z")

</div>

Hi,  
I use a template with this code:

```
<!DOCTYPE html>
<html lang="de">

<head>
<title>Logfile</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>

<embed src="http://192.168.2.51:8083/birdlog.txt" content="text/html; charset=UTF-8" width="500" height="500">

</body>
</html>

```

It works fine, and in this manner I can look a logfile (birdlog.txt) on the browser. What I want is an **automatic scroll function to the end** of the birdlog.txt when the site is loaded.

Could someone kindly give me some ideas on how to start with a function like this?

best regards  
lippih

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [22 January 2019 13:23 UTC](https://discourse.nodered.org/t/html-template-emeded-txt-file-autoscrolling-to-the-end/7142/2 "2019-01-22T13:23:52Z")

</div>

Ummmm, looks like you forgot to include the code

---

<div class="post-metadata">

**Author:** ![lippih](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@lippih](https://discourse.nodered.org/u/lippih)\
**Post date:** [22 January 2019 13:26 UTC](https://discourse.nodered.org/t/html-template-emeded-txt-file-autoscrolling-to-the-end/7142/3 "2019-01-22T13:26:10Z")

</div>

sorry, something was wrong with the format, now it's ok

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [22 January 2019 13:46 UTC](https://discourse.nodered.org/t/html-template-emeded-txt-file-autoscrolling-to-the-end/7142/4 "2019-01-22T13:46:33Z")

</div>

This is a html question rather than a dashboard question. A google search should find loads of answers about auto scrolling in a web page
