1

I have a one page site with buttons on the top that direct you to different anchors, is there any way I can get the title to change every time I click the the button?

1 Answers1

0

lucky you there is a direct property

https://developer.mozilla.org/en-US/docs/Web/API/Document/title

you just do document.title = value

ashish singh
  • 5,232
  • 1
  • 9
  • 27