Want to open a html to initialize an id to its url

like this
clipboard.png
:

clipboard.png
but the problem is that it keeps refreshing when the page is opened. I don"t know if my method is wrong. I ask the bosses to take a look at it for me. Window.location.href has also tried, but it still doesn"t work

.
Mar.16,2021

1.window.location.href = window.location.href + "? id=1"
2. See if this line of code is repeated in your code

Menu