I have an html document inserted in a web page, and my goal is to implement the button which will point to the text with colored background in those doc.
The problem is, I’m not allowed to modify document itself, so I can’t add there a tag with an ID.
Is there any way to create a link which points to the special text in html, like "style="background-color:#FFC1C1""?
2
Answers
Add a button to your webpage that will trigger the JavaScript function
Create the JavaScript function that will search for the text with the specified style and scroll to it: