This Javascript will delete from the url all occurances of the varaible dog, then reloads the page automatically. location.href=location.href.replace(/&?dog=([^&]$|[^&]*)/i, "");
location.href=location.href.replace(/&?dog=([^&]$|[^&]*)/i, "");