I want to change the param of link dynamically.
For e.g.
- Link1
- Link2
- Link3
by default their url is ?item=text i.e. for link1(href=”?item=link1″) etc..
but when i click link1 the url of link2 and link3 should be
link2(?item=link2&item=link1)
link3(?item=link3&item=link1)
any idea how to acheive this?
Thanks,
Assuming all the links have a class of
superspeciallink, this should work:This would mean that these links never get followed though — I assume some other JavaScript would be reading out these query string values eventually.