I have a script as below
$(\'.button1\').click(function() { document.location.href=$(this).attr(\'id\'); });
the button1 has variable uniqu
you can get the current url with window.location.href but I think you will need the jQuery query plugin to manipulate the query string: http://plugins.jquery.com/project/query-object
window.location.href