I have a question and I wonder if it's possible. I want to add dynamically content into an html page, by changing the id in the URL.
I mean, for example I want to add the name of a person to a web page:
At first my page would be : www.mypage.com/index
<p> Hello <span></span> welcome to our page</p>
The result I want to get, is by writing this url: www.mypage.com/index#YourName the code updates itself to this:
<p> Hello <span id="YourName">YourName</span> welcome to our page</p>
So the id and the content of the span updates juste by modifying the URL. I don't really know how to achieve that. I wonder if I could give to my span dynamically an id by typing it on the url, and then retrieve this id and use it as a the value of the span.
<p> Hello <span id="HerName">HerName</span> welcome to our page</p>?idchange with the hashTag ?