Let’s suppose that I’m displaying a web page whose URL is
http://www.mysite.com?id=10&name=test
(the URL is always different. It’s generated based on what the user has selected in previous pages)
At the bottom of the page I have a button that when is pressed I want the
same page to be displayed, but adding a new parameter in the URL. For example,
the new page would be http://www.mysite.com?id=10&name=test&extraparam=myvalue
Is there an easy way of doing this? I’m using static HTML. Nothing else.
Thanks!
If you want to do this with only HTML, and not using JavaScript or any server-side scripting languages, the answer is that it is not possible. You will manually have to write out the URL in your hyperlink to include any parameters you would need to include.