Just a curiousity rather than an acutal need, I've never thought about this, but I can't think of any html which would do this. I could do it in Javascript or Serverside easy enough, but curious if browers can implement this anyway.
Say I'm at a url: http://www.mysite.com/?param1=10
and I have an <a>
tag, is there anyway to make it's href so that it will append a new parameter to the qs?
So I could have <a href='?param2=20'>Twenty</a>
which would make the url http://www.mysite.com/?param2=20. But I want it to be http://www.mysite.com/?param1=10&param2=20. Conversely if I was on http://www.mysite.com/?param1=10&param2=20 and there was a link to turn the url into http://www.mysite.com/?param1=30&param2=20, by only specifiying the param1 parameter in the tag? <a href='?param1=20'>10</a>
.
If that makes sense? So can this be done just with html, no js or serverside, and not form submissions, just <a>
tags?