A
A
Art. Ku.2015-09-20 23:36:50
JavaScript
Art. Ku., 2015-09-20 23:36:50

How to catch multiple blocks with "scrl" tag via getElementsByTagName('scrl')?

Hello, I need to catch and rewind up all blocks with the tag "scrl". I have a lot of them.
3881e3bb0690439db0de80797c42edb2.png
Here is the code that is supposed to catch them

window.onload = function()
{
 document.getElementsByTagName('scrl').scrollTop = 9999;
}

But it doesn't catch. If we replace the scrl tag with id='scrl' and catch via getElementById - it catches, but only the first one. Why doesn't it catch by tag name? Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question