Introduction to javascript:; and javascript: void (0)

Href = "#", which contains a location information. The default anchor is # top, that is, the top of the webpage. When you click this link continuously and quickly, the browser slows down or even crashes.Of course, we generally use three href = "###",

JSCode all of Brower

[Javascript]Copy codeThe Code is as follows:

Use the ajaxfileupload plug-in to implement non-refreshing File Upload Methods

This problem occurs during project creation. NET FileUpload control implements file upload, and the page will be refreshed, so the elements spelled out by JS on the page will disappear. In order to upload files, the page cannot be refreshed,

Example code for jQuery to implement fixed table header Effects

1. Create a js file jQuery_FixedTableHead.js The content is as follows: Copy codeThe Code is as follows:JQuery. fn. CloneTableHeader = function (tableId, tableParentDivId ){ Var obj = document. getElementById ("tableHeaderDiv" + tableId ); If (obj ){

Use Ajax to update the page after JQuery DataTable deletes rows

It is very convenient to use Jquery DataTable to process data tables. A common problem is that the page must be updated after a row is deleted. Note the following method: Pay attention when initializing the table on the front-end page:Copy codeThe

How to extend the OrderByAsc and OrderByDesc methods of js object arrays

After reading about the js prototype for a while, the js extension method is based on the prototype. For example, Array. prototype. XXXX is to extend the XXX method to Array, and then the Array can use this method.In the object array, attributes are

JS calls the print method to set the instance of the header and footer

set the header and footer customer name phone contact phone email Region Hui group 0432-65412 ** senior Manager 137562112 ** caihongssss @***. com Jilin City Jilin tomorrow Technology Co., Ltd. 0431-84972266 game

Jquery implements smart sensing connection to Internet search

Copy codeThe Code is as follows:

Use JavaScript to implement various cross-origin Methods

I. Concepts ① Traditional Ajax: Interactive Data Format-custom string or XML description; Cross-origin: solve the problem through the server proxy. ② Optimal solution today: Use JSON format for data transmission and JSONP for cross-origin. ③ JSON: a

JQuery drag image deletion example

Copy codeThe Code is as follows:

Example of a jq tab plug-in with mouse latency

Copy codeThe Code is as follows:Http://www.w3.org/TR/html4/loose.dtd> Create a tab plug-in menu 1 menu 2 menu 3 content 1 content 2 content 3 menu 1 menu 2 menu 3 content 1 content 2 content 3

Performance Comparison Between JQuery for and each

Recently I am working on performance optimization and have encountered many details. Now I will record all the problems I encountered and share them with you. I will not thank you for your nonsense. I will directly post the code.Copy codeThe Code is

Js checks whether the content of FCKeditor is empty.

Form 1:Copy codeThe Code is as follows:Function checkFCK (key){Var oEditor = FCKeditorAPI. GetInstance (key );Var content = oEditor. GetXHTML (true );Content = content. replace (// g ,"");Content = content. replace (/\ s/g ,"");Content = content.

Several implementation methods of startWith and endWith in javascript

JavaScript uses regular expressions to implement startWith and endWith FunctionsCopy codeThe Code is as follows:String. prototype. startWith = function (str ){Var reg = new RegExp ("^" + str );Return reg. test (this );}String. prototype. endWith =

JQuery + CSS prompt box Implementation ideas and code (created manually)

Copy codeThe Code is as follows: transparent background Liu Chengliang Liu Chengliang Liu Chengliang Liu Chengliang Liu Chengliang Liu Chengliang Liu Chengliang Liu Chengliang Liu Chengliang Liu Chengliang display prompt close User

Code for simulating the select drop-down menu control in js

Copy codeThe Code is as follows: js simulated select select select simulation 1 of jq select simulation 2 of jq select simulation 3 of jq select 2 select simulation 11 of jq jq's select simulation 22 select simulation 31 of jq

JavaScript code for automatically downloading an object to a Local Machine

Copy codeThe Code is as follows: automatically downloading files from js to a local device

How to adjust the image transparency using the jQuery fadeTo Method

Copy codeThe Code is as follows: Transparency: 0 0.2 0.4 0.6 0.8 1

Various types of form classes (text boxes) lose focus effect jquery code

Copy codeThe Code is as follows: the Form class loses focus. Copy codeThe Code is as follows: Types of various forms:Copy codeThe Code is as follows: text box password box submit button reset button single worker check box normal button file

The difference between mouseleave and mouseout in jquery imitates the drop-down box Effect

1. The mouseout event is triggered no matter the mouse pointer leaves the selected element or any child element.2. The mouseleave event is triggered only when the mouse pointer leaves the selected element.Copy codeThe Code is as follows: Shenzhen

Total Pages: 5378 1 .... 4156 4157 4158 4159 4160 .... 5378 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.