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?
Asked
Active
Viewed 26 times
1 Answers
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
![](../../users/profiles/5246058.webp)
ashish singh
- 5,232
- 1
- 9
- 27