This article mainly introduces seven useful jQuery tips, this article provides some useful code snippets, such as opening links in a new window, setting high columns, pre-loading images with jQuery, right-clicking disabled, and setting timers, for more information, see jQuery, a lightweight JavaScript library and one of the most popular Client HTML scripts. It is very famous among WEB designers and developers, there are also many useful plug-ins and technologies to help WEB developers develop creative and beautiful WEB pages.
Today, we will share some tips for jQuery users. These tips will help you to demonstrate the creativity and functionality of your website layout and applications.
1. Open the link in a new window
With the following code, you can click the link to open it in a new window:
$(document).ready(function() { //select all anchor tags that have http in the href //and apply the target=_blank $("a[href^='http']").attr('target','_blank');});
2. Set high-level Columns
The code below can make every column of height of your WEB application think about it:
First Line
Second Line
Third Line
Column Two