Can this be done with Javascript?

I have gallery of elements like this one:

When you click one of these elements you jump to another html file, page refreshes, and the title in the browser tab matches the element’s name title. Also the structure of the page changes a few things depending on what element was clicked.

I asked a friend and he told me I would need PHP or another backend technology to do something like this. I want to make sure if there’s no way around with JS to do something similar before creating an html file for each one of these blogs.

You can create an SPA. Have a look at this medium article on the subject.

1 Like