The purpose of this lesson is to invoke the target name, in this case, the window name Yer_new_window.
Now that we've simply revisited the href goal, it's time to start learning to open windows in JavaScript.
Opening windows in HTML is very common,
Interactive! Most Web sites claim interactivity when you click on a link to reach a new page, but strictly speaking even when the Web page has a CGI language doesn't mean it's really interactive. Fill out the form, press the Submit button, wait ...
In this section, there are some other important things to understand when using JavaScript for coding.
JavaScript is case sensitive
The function named "MyFunction" and the function named "MyFunction" are two different functions, likewise, the
Events are behaviors that can be detected by JavaScript.
Event
JavaScript gives us the ability to create dynamic pages. Events are behaviors that can be detected by JavaScript.
Each element in a Web page can produce events that can trigger
A loop in JavaScript is used to execute the same piece of code for a specified number of times (or when the specified condition is true).
JavaScript Loops
When writing code, you often want to execute the same piece of code over and over again. We
Conditional declarations in JavaScript are used to complete behavior based on different conditions.
JavaScript Switch Declaration
If you want to choose to execute one of several blocks of code, you can use the switch declaration:
Grammar:
More difficult. Be prepared in your heart ... Deep breath...
1, For/in:
A method of traversing (enumerating) the properties of an object that can loop through the properties we don't know beforehand.
It can enumerate all of the user-defined
Look at the explanations in the manual and have the following methods:
5iscript.cnconcat method
Join method
Pop method
Push method
Reverse method
Shift method
Slice method
Sort method
Splice method
toLocaleString method
ToString Method
Unshift
Event Handling Overview
Event handling is an important part of object-oriented programming, and without event handling, the program becomes very dead and inflexible. The process of event handling can be represented by an event-initiating an event
A document Document object is an attribute of the window and frames object in JavaScript, and is one that appears within a window or frame. A document that describes the current window or the specified Window object. It contains the contents of the
JavaScript HTML DOM Elements (nodes)Create a new HTML elementTo add a new element to the HTML DOM, you must first create the element (element node) and then append the element to an existing element.Instance
this are a paragraph.
this is
The use of a radio box in JavaScript is similar to the check box. The difference lies in the application in HTML. A check box is a switch. If a check box is selected, you can click and deselect. However, if a radio box is selected, you can only
Is the prime number judged?
Prime numbers (prime number) are also called prime numbers, with an infinite number. A prime number is defined as a number of natural numbers greater than 1, except for 1 and its own no longer have other factors than the
Output content (document.write)
document.write () can be used to write content directly to the HTML output stream. Simply put the output directly in the Web page.
The first type: the output is enclosed with "", and the contents of the "" number
This article will briefly introduce Vue.js, and in the node.js environment to build a simple demo.
First, Introduction
I personally understand that Vue.js is a set of front-end view-layer framework that cares only about view presentation and data
A design pattern for JavaScript
Simple design Patterns for classes
Define a class Class1
function Class1 () {
Constructors
}
To implement the member definition of a class by specifying a prototype object
Class1.prototype = {
Someproperty: "Simple",
One. Traditional prototype based (Prototype) approach
Specifically, the "class" of javascrīpt is not really a class in the strictest sense, from the object it declares to the class (estimate) has such a relationship:
Instance.__proto__=instanceclass.
The last piece of nonsense too much, write very rotten, this time to talk about inheritance, we know the last section of prototype, now I start from prototype to achieve the method
function occupation () {
The var note = "Every day to work well";
}
Metacharacters^ $ . * + ? = ! : | \ / ( ) [ ] { }
You need to use "\" for the transfer when using these symbols.
If you don't remember that those punctuation marks need to be transferred, you can use the backslash "\" when using punctuation.
Simple
Description: IE6.0, IE7.0, IE8.0, firefox/3.0.11 under the test pass
Verification Number simplest regular expression Daquan Input After the press RETURN can be verified! (Consider yourself the simplest!) positive integer: Negative
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