Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the links array document of JavaScript

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article focuses on "how to use JavaScript links array documents". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use JavaScript's links array documents.

An array of link objects in an links array document, arranged in the order in which they appear in the document (the property itself is an object)

Location currently displays the URL of the document. The user cannot change _ document.location (because this is where the document is currently displayed). However, you can change _ window.location (replace the current document with another document) _ window.location itself is an object, and _ document.location is not an object

Referrer contains the URL of the linked document, which the user clicks to reach the current document

Title of the title document ((TITLE >)

The link text color of the vlinkColor to the document that the user has observed, that is, the VLINK property of the tag

Method

Clear clears the contents of the specified document

Close closes the document stream

Open opens the document stream

Write writes text to the document

Writeln writes text to the document and ends with a newline character

B.8 elements array

It is a property of the form object that enumerates an array of elements within the form.

Attribute

The number of elements in the 1ength window

B.9 form object

It is a property of the document object, a form within the document.

Attribute

Action contains the string of the target URL submitted for a form

A button inside the button window that is created using a tag (the property itself is an object)

Checkbox check box, created using tags (the property itself is also an object)

Elements array an array that enumerates the form elements in the order in which they appear in the window (the property itself is an object).

MIME Encoding of encoding forms

A hidden element () in a hidden form. A property of a form object (which itself is an object)

The number of elements in the length form

How the data from the method input form is transferred to the server, that is, the METHOD feature in the (FORM) tag

The radio button () set by radio in the form (the property itself is also an object)

Reset button in the reset form ((1NPUT TYPE= "RESET" >) (the property itself is an object)

The selection box () in the select form (the property itself is also an object)

After target submits the form, the name of the window that displays the response message

A text element () in a text form (the attribute itself is also an object)

The text area element () in the textarta form (the property itself is also an object) method submit submit the form (the same as using the Submit button) event handler onsubmit

B.10 forms array

This array is a property of the document object, which enumerates an array of forms within the document.

Attribute

The number of forms in the length document

B.11 frame object

It is a property of the window object and a frame within the window. With a few exceptions, the frame object has the same effect as the window object.

Attribute

Frames array enumerates an array of subframes within the framework (is the attribute itself? Length the number of frames in the frame the name of the name frame (the NAME feature in the tag) parent contains the synonym of the parent window of this frame the synonym of the current frame self the synonym of the current frame the synonym method clearTimeout () of the current frame is used to terminate the work of the setTimeout method setTimeout () waits for the specified number of milliseconds, and then runs the instruction

B.12 frames array

It is both a window object and a property of the frame object, enumerating the frames within the window or frame object.

Attribute

The number of frames within a length window or frame object

B.13 hidden object

Paste as an attribute of the form object and a hidden element within the form ().

Attribute

Name within name tag (NAME attribute) VALUE= attribute within value tag

B.14 history object

It is a property of the window object and a history list of the window.

Attribute

Number of items in the length history list

Method

Previous document in back load History list next document in forward load History list go loads a specified document in the history list, specified by the position of the document in the list

B.15 image object

It is an attribute of the document object and is an image embedded in the document using (1MG) tags. This is a new object introduced by Netscape Navigator 3.0 beta 3.

Attribute

[@ more@]

At this point, I believe you have a deeper understanding of "how to use JavaScript links array documents". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report