/    Sign up×
Community /Pin to ProfileBookmark

reusing a frameset page with js?

Hey, all,

I think this is a very easy question, and I know I’ve done it in the past, but:

I would like to use a single page (say linkout.html) as a branding/linkback frameset for a set of links from a site. (Think Digg or StumbleUpon). My intuition is that this is a Javascript thing and that I should be able to access the frame src= from the DOM, but I admit I’m not really sure how… Advice?

Thanks!
Fred Tededmondsson

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@twseitexJul 21.2011 — Hi,

for complete reference see http://msdn.microsoft.com/en-us/library/ms533050.aspx


shorter:

FRAMESET Element | frameSet Object Internet Development Index


--------------------------------------------------------------------------------

Specifies a frameset, which is used to organize multiple frames and nested framesets.




The FRAMESET element is a container for the FRAME element. An HTML document can contain either the FRAMESET element or the BODY element, but not both.

If a user opens a Web folder inside a frame and then clicks something in the Web folder, the file or folder that the user clicks takes over the entire window. For example, suppose that a page contains two frames, one frame pointing to http://www.microsoft.com and the second frame pointing to a network drive. If the user clicks a file or folder in the second frame, that frame takes control of the entire window, including the first frame. For file types that the browser cannot host, such as .txt files, a separate window in the appropriate host application is opened.

A Web folder is a part of the file system hierarchy, but it does not necessarily represent anything in the file system. An example is Network Neighborhood.

This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

This element is an inline element.

This element requires a closing tag.

Example

This example uses the FRAMESET element to define three columns of rectangular frames on a page.

<FRAMESET COLS="25%, 50%, *">

<FRAME SRC="contents.htm">

<FRAME SRC="info.htm">

<FRAME SCROLLING="NO" SRC="graphic.htm">

</FRAMESET>

========================================================================================

FRAME Element | frame Object Internet Development Index


--------------------------------------------------------------------------------

Specifies an individual frame within a FRAMESET element.


You can access the frame object's properties (but not its contents) through the object model of the page in which the frame object resides. For example, the syntax for accessing the border style of the frame object is:

sBorderValue = document.all.oFrame.style.border;

If a user opens a Web folder inside a frame and then clicks something in the Web folder, the file or folder that the user clicks takes over the entire window. For example, suppose that a page contains two frames, one frame pointing to http://www.microsoft.com and the second frame pointing to a network drive. If the user clicks a file or folder in the second frame, that frame takes control of the entire window, including the first frame. For file types that the browser cannot host, such as .txt files, a separate window in the appropriate host application is opened.

A Web folder is a part of the file system hierarchy, but it does not necessarily represent anything in the file system. An example is Network Neighborhood.

Internet Explorer 5.5 supports transparent content for a FRAME. The following conditions must be met to define transparent content for a FRAME.

The ALLOWTRANSPARENCY attribute, used with the FRAME element, must be set to true.

In the FRAME content source document, the background-color or BGCOLOR attribute of the BODY element must be set to transparent.

This element is available in HTML and script as of Internet Explorer 3.0.

This element is a block element.

This element does not require a closing tag.

Examples

This example uses the FRAME element to define properties of the frame, including the location of the page loaded by the frame.

<FRAME FRAMEBORDER=0 SCROLLING=NO SRC="sample.htm">

This example shows how to reference an object with ID=sID in FRAME2, from another frame of the same frameset.

parent.frames.FRAME2.sID.innertext
×

Success!

Help @fred_tededmonds spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...