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 35 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

ashish singh
- 6,526
- 2
- 15
- 35