I am brand new to the world of Javascript, currently diving into JavaScript and jQuery for an issue I'm facing.
Here's what I'm trying to accomplish:
- I have a selection of words ("foo", "bar")
- Retrieve the current webpage's content (html, css, content)
- I aim to refresh the page with "foo" and "bar" highlighted wherever they are found on the page.
All I want is to highlight any page that users open with a predefined set of words contained within it.
Right now, I'm struggling with step 1. Could someone kindly guide me towards an approach or resource I can study up on?