Today, this article shares 9 great examples, and we recommend browsing in the Chrome browser for better results.
1. Untangle
Drag the blue dot, so that all the lines do not intersect, see how long you can untie? :)
2. Z Type
A space shooting
This article mainly gives you a summary of the most basic JavaScript 7 functions, very practical, the need for small partners can refer to.
I remember early JavaScript, and it's almost impossible to do anything to get around some simple functions,
Invoking a JavaScript behavior can specify a custom function or JavaScript code to execute when an event occurs. You can write these JavaScript code yourself, or you can use a variety of JavaScript libraries that are free on the web.
One,
This example describes how JavaScript validates e-mail addresses and MX records. Share to everyone for your reference. as follows:?
1 2 3 4 5 6 7 8 9 10 11 12 13-14
Tests for a valid e-mail address and optionally Tests for valid MX
Detection of the existence of attributes in an object can be judged by several methods.
1. Use in keyword
This method can be used to determine whether an object's own properties and inherited properties exist.
The code is as follows:
var o={x:1};
The examples in this article describe the common tips for JavaScript. Share to everyone for your reference. The specific analysis is as follows:
Boolean expressions of one, True, and False
The following Boolean expression returns false:
Null
This article mainly introduces the JavaScript in the splice () method of using the detailed, is the basic knowledge of JS learning, need friends can refer to the
The splice () method of the JavaScript array changes the contents of the array, adds
The JavaScript date.getutchours () method returns the time at the specified date according to the Universal Time. The value returned by getUTCHours is an integer between 0 and 23.
Grammar
1
Date.getutchours ()
The
This article mainly introduces the JavaScript in the LastIndexOf () method of using the detailed, is the basic knowledge of JS learning, need friends can refer to the
This method calls a string object that returns the value specified by the index
This article mainly introduces the event mechanism in JavaScript, that is, the general interaction between JS and HTML, the need for friends can refer to the
What is the event?
JavaScript and HTML interaction are handled by manipulating events
This example describes the usage of JavaScript prototype patterns. Share to everyone for your reference. The specific analysis is as follows:
After understanding the drawbacks of the factory model and the constructor pattern, we know why we need
Using EmEditor, when looking at an XML document, it's always confusing because of the format confusion. This is a EmEditor macro to automatically format the XML. Download:formatxml.rar (1,021.00 bytes)The following section is the JavaScript
Script Script Description:
The first step: Add the following code to the area
var key = "";
function Makeentry () {
This. Name= "";
This. URL = "";
This. Desc = "";
This. Category = "";
This. Target = "";
return this;
}
function Makearray (n)
Script Script Description:
The first step: Add the following code to the area
var key = "";
function Makeentry ()
{
This. Name= "";
This. URL = "";
This. Desc = "";
return this;
}
function Makearray (n)
{
This.length = n;
for (var k = 1; k {
This[
Command|javascript
In the Web page, the Flash Player is able to communicate with the browser. You can use Fscommand () to send parameters to the browser in Flash, and then use Movie1_dofscommand () to get the parameters in the browser. MOVIE1 is the
frontpage|javascript| Disable | design | Web page
From animations to applications, JavaScript can be used in a variety of objects within a site. But some browsers do not support JavaScript, so sometimes visitors may not be able to display correctly
Control methods:
Each time you change the order or change the value, all the item in the current listbox is saved in the Hidden tab through a for () loop, and this hidden label can only be an HTML control (remember: You cannot use the server control
The example in this article describes how JavaScript gets and changes the input label Name property. Share to everyone for your reference. The implementation methods are as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16-17
"#" contains a location information
The default anchor point is #top, which is the top of the page.and javascript:void (0) only represents a dead linkThis is why sometimes the page is very long to browse the link obviously is the # but beat to the
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