I made a JavaScript function to hide a link on click of button and its work here the function
<script type="text/javascript">
function toggle()
{
var ele = document.getElementById("yui-gen1");
var text = document.getElementById("windows");
if(ele.style.display == "block") {
ele.style.display = "none";
}
else {
ele.style.display = "block";
}
}
</script>
But when it hidea the next link replace its place. I want nothing to replace its place, I want its place after the hiding to be just empty. Is there any way to do that?