I am trying to hide a button from a dynamic page using the below script
  <a class="hideonClick" id="venueButton" type="button">Find venue providers</a>
<script>
document.getElementById("venueButton").onclick = function() {hideButton()};
function hideButton(){
    //get the button
                venueButton.href="http://evopia.net/?providers-category=venues&catid=123&pagenum=1&viewtype=grid-4&numberofpages=&setorderby=&setorder=";
                venueButton.style.display="none";       
    }
    window.onload = init;
</script>
</pre>
The problem is, I am using a 'href' to redirect to the given link and I want to hide this button only on the used 'href' link. Please help which method can be used.
 
     
    