<input id=gua type="button" onclick="gua()">
<script>
function gua()
{ window.open(...);
  gua.style.display=none;
}
</script>