I want to get variables from a URL and write it to an href, for example:

URL:

http://www.xyz1.com/?sk=app_19032254...campaign=FP-IT

HREF:

http://www.xyz2.com/?sk=app_19032254...campaign=FP-IT

How's that possible using only Javascript?