dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: reusing a frameset page with js?

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Posts
    6

    Question 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

  2. #2
    Join Date
    May 2011
    Posts
    194

    frame and framset objects

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles