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

What is the use of the Frames object in JavaScript

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article focuses on "what is the use of Frames objects in JavaScript". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what is the use of Frames objects in JavaScript"?

What is the JavaScript Frames object?

If the page uses frames, it produces a frame collection frames, in which numbers are available (starting at 0, left to right, indexed line by line) or name indexing frame.

Objects used in frameset referenc

Window current framework

The top-level framework of top is the browser form

Parent contains the parent frame of the current frame

Self current frame, always equal to window object

?

eight

Frameset rows= "20%, *, 20%" >

Frame src= "http://www.itxueyuan.org/javascript/" name=" top "/ >

Frameset cols= "20%, *" >

Frame src= "http://www.itxueyuan.org/javascript/jiaocheng_1/" name=" left "/ >

Frame src= "http://www.itxueyuan.org/javascript/jiaocheng_2/" name=" right "/ >

/ frameset >

Frame src= "http://www.itxueyuan.org/javascript/php/" name=" bottom "/ >

/ frameset >

The above frame page example produces a frameset.

Window and self represent the same object, but self is to make sure that the frame being used is not parent, but itself, and the top object represents the top-level frame, the browser form itself, so in this case it is equal to the window object, if there is no frame on the page, window,self is equal to top, and the length of the frame collection is 0.

If the page with the frame name right includes the following frames:

What is the JavaScript Frames object?

Frameset cols= "50%, *" >

Frame src= "http://www.itxueyuan.org/javascript/" name=" righttop "/ >

Frame src= "http://www.itxueyuan.org/php/" name=" rightbottom "/ >

/ frameset >

Then the parent parent frame of righttop and rightbottom is right.

At this point, I believe you have a deeper understanding of "what is the use of Frames objects in JavaScript?" 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

Internet Technology

Wechat

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

12
Report