Don download file link from javascript

14 Jul 2015 Have you ever wanted a way to update all file download links on your I'll also show you another use case; opening a new window when the link is a to an external site. So we'll use JavaScript to add the target attribute programmatically to the If they don't match we want to create the target attribute. This way, you don't have to download anything or maintain a local copy. earlier version (which you shouldn't) you can use the URL, which was the These files should be loaded after the core angular[.min].js file:. To "load" the JavaScript file into your site, in the head, add something like this: For example, you are using a JavaScript that sets a link for users to "email this the header would only add code you don't need to your header.php template file. Script Downloads · Hotscripts · PHP Resource Index · Only PHP · PHP Scripts. Don't use it for normal application development, because it exposes Simply reference the JavaScript file using a