How to organize menu as cian?

https://www.cian.ru/
Press the "Buy" choose "to Surrender" and the button is displayed "Pass". How it can be implemented?
June 27th 19 at 15:08
1 answer
June 27th 19 at 15:10
I'm still no expert, but I somehow think that the document.querySelector('some-button').innerHTML = "some text", or use insertAdjacentHTML.
innerHTML
insertAdjacentHTML

Getting the value of dotogo element via this. There seems nothing unusual was observed.

Find more questions by tags HTMLJavaScript