How to download a file and then scroll down to an element on button click

On clicking a button, I want to download a file and then scroll down to a section whose id is “install-guide”. So for that, I’ve set the url of the file that is to be downloaded in the link settings of the button. Then, I’ve added the following code to the body tag:

<script>
	document.getElementById("#mobile-banner-cta").onClick=function(){
  	document.getElementById("#install-guide").scrollIntoView({
    	behavior: "smooth"
    });
  };
</script>

But this only downloads the file. It doesn’t scroll to the section. How can I make it download and scroll?