1
I wanted to know if you can generate random characters in the link on a page, without having to change the address of the page.
For example, when the person clicks on the link, they will be sent to:
site.com/pages/pagina-de-destino.html
but I want the browser to display in the search bar:
site.com/pages/pagina-de-destino.html#access_token=(por volta de 160 caracteres aleatórios)
How to do this in Javascript/HTML?
My friend, how and where do I apply this js on the page? Sorry, but I’m new to Javascript. I don’t know if it affects, but in the project, the link is inside the div "item", which is inside the div "main"
– Daniel Bonifácio
Simply put the same name in the link and getElementById ID, no matter where you are. JS can be put where you want from the page too, or externally loaded, as long as it is executed.
– Bacco