Skip to content

Category: Questions

the layout of the page does not change with js

Basically I have written a basic code but cannot figure out where is the issue causing it not to work. so I have the following DOM snippet and my script is working as following I have taken container by is and not the body because i have the header and the footer in the page that i would like to

Javascript: Update inner html when URL changes

I have a dropdown menu with anchor links for my page. I want to change the button contents to reflect which anchor it is currently on. To do this I wrote a function that is executed when the button is clicked. It then goes through the array of anchor names and if it matches the array item to the current