Using "_blank" as the target attribute value will create several new and unnamed windows on the user's desktop that cannot be recycled or reused. It represents the browser's window. I'm assuming you have something like this.http.get(url) or .post(url), usually you just pass the id in the function and concatenate it to the url getSpecific(id){ this.http.get(url + id) .. }. Asking for help, clarification, or responding to other answers. Slide in an element when the user has scrolled down 350 pixels from the top of the page (add the slideUp class): window.onscroll = function() {myFunction ()}; function myFunction () { if (document.body.scrollTop > 350 || document.documentElement.scrollTop > 350) { document.getElementById("myImg").className = "slideUp"; } } Try it Yourself Let me explain my approach. This can be used with the body element to execute a script after the webpage has completely loaded. Content available under a Creative Commons license. The JavaScript Tutorial website helps you learn JavaScript programming from scratch quickly and effectively. The document is in the following state: All the resources still exist (img, iframe etc.) Inside window.onload function(){}) will run as soon as all page resources are loaded. Reload page in typescript - code example - GrabThisCode.com This name can be used as the target attribute of or