How can I get value from html?

Hi! How can I get this value from html https://markisaev.github.io/Test1 into my application? after passing the test on my site, the score I want to get is set.



at the very beginning, I cause the page to load, after passing the test on this page, when I click the back button, I return to the main menu and call the function to get the value from this page, but all that returns is {} or null. I can provide the path of the selector so that you can look and find this line faster. #dResults > pass-test-result-edu > div > div.content > div > div:nth-child(1) > div:nth-child(2) > table > tbody > tr > td:nth-child(2) > b. Please help

Try get all “b” classes.

document.getElementsByTagName("b")[0].innerHTML;

Do to find how many there are.

document.getElementsByTagName("b").lenght;

Then try to get it in order by making a loop. “[0]” is variable. It takes the value in the order of how many “b” there are.

Actually when we do [0] where it says [*] it should get all of them but for some reason it doesn’t work.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.