You could be more specific, here's one way to do something like that:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function aquery(l, n, v){
var a = document.getElementById(l);
a.href = a.href.replace(/\?.*/, '') + '?' + escape(n) + '=' + escape(v);
}
</script>
</head>
<body>
<div>
<a href="javascript:void(0);" onclick="aquery('main', 'var2', '32');return false;">Link Text or Image</a><br>
<a id="main" href="some.php?var1=16">Link Text or Image</a>
</div>
</body>
</html>
Bookmarks