jQuery – Add a _blank Target Attribute to PDF Links
Depending on the browser being used and its settings, a PDF link may open by default in the same tab/window. But jQuery can change that behavior.
Depending on the browser being used and its settings, a PDF link may open by default in the same tab/window. But jQuery can change that behavior.
Using jQuery, a “print page” link can be created on the page which will open the browser’s print dialog box when clicked.
You may have a set of links setup to outside sources or even as affiliate links. jQuery can be used to automatically set those links to nofollow for SEO.
Using jQuery, a “reload page” link can be created on the page which will allow the user to reload the page when clicked.
There are times where you may want/need to disable a text link or set of links on your sites temporarily using jQuery.
There are times when you only want specific elements of your site to show AFTER the page has finished loading. For instance, a heavy hero-image section.
Using theĀ jQuery animate() method, a link clicked can smoothly scroll down (or up) the page to a page anchor.
Some sites place a smooth-scrolling, back-to-top button in the lower, right-hand corner of the site so the user can get back to the page top easily.