This is almost certain to spark a debate!
My understanding of your question is either of these two:
How do I pass data in the query string when my data contains an ampersand (&).
And the correct answer is that you escape it...
value=something%26with%26ampersands&value2=hello
You also need to escape lots of other characters too.
How do I write a link on a web page when ampersands (&) make my markup invalid
Technically you should write your links like this...
<a href="mypage?value=hello&value2=world">Hello World</a>
This prevents your markup from getting "entity confusion" as the & character denotes an entity.
Both Together
<a href="mypage?value=something%26with%26ampersands&value2=world">Hello World</a>
Can you escape an address using JavaScript
You can use:
var myAddress = escape("value=something&value2=something");
But it probably doesn't do what you want. It will encode special characters - but not * @ - _ + . /
This means you would get all & replaced with %26...
Server side languages do a much better job of this - what language are you using?