<div class='user'><img src='*' class='avatar float-left'> <div>нужное значение*</div></div> There is an HTML page. In this code, you need to display only the "desired value *" using JS. On the page of such a div a whole bunch, so that the number will not work. "The required value *" is replaced with a random word (user nickname) after a certain time. Maybe there is an option to somehow find the class 'user' and inside with a div to display this "desired value *"? Trying to do this:
function find_name() {var value_name = document.getElementsByClassName("userinfo"); document.title = value_name.innerHTML; } Naturally, this code is not enough and the title flies "undefined". Can there be any option through JS to drop into the desired value * at least id on the fly? Those. to get the desired value *. Let me remind you that when you load the page, the "desired value *" is already substituted and the following is not known - it does not repeat. Page someone else and can not be replaced.