I have a div
with a fixed size and it contains many large texts inside it. I would like that whenever the page that contains it was loaded, it was "focused" (ie the focus of the page went straight to that div) and automatically the scrollbar of that div was lowered to the end. Is it possible to do this only by using html
and css
? If it is not possible, what would be the alternative methods (putting it from the simplest to the most difficult)? Below is the code for the page:
<!DOCTYPE html>
<html>
<head>
<title>Página Inicial</title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<div class="container">
<p id="message">
<%= message %>
</p>
</div>
</body>
</html>