Hello everyone!
I am developing my first web app and I would need help from somebody more experienced then me!
I have created a sidebar that ideally should always be available to the user, on each page of the app, and I called it sidebar.html. In this file there is the full html code, the css and js script for the sliding animation of the sidebar when clicked on it.
Now I would like to import this code to the other pages, starting from index.html but I can't seem to find a correct way to do it. The closest I got was using the the <iframe> tags, but then the sidebar is available only in the frame itself and not on the rest of the page.
Is it possible import this into other files? What would be the correct way to proceed for it?
Thanks a lot in advance for the attention and for the answers 🙂