SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict dr_dumb99's Avatar
    Join Date
    Sep 2004
    Location
    Pakistan
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How To open a file containing frames

    Hi!
    I have 2 files. In file#1, I have a link. When some one clicks on this link, file#2 is opened in new window.

    My problem is that:

    1- How file#2 will be opened through javascript in file#1.
    File#2 contains two frames{top,bottom}.

    2- How a value will be assigned to a variable [in TOP FRAME FILE] of file#2, through javascript ?

    Thanks in advance

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    using window.open you can open your file 2 in a new window, and if you want ot reference it, you can use

    Code:
    var win = window.open('file2.url');
    win.framename.variable = value;



Bookmarks

Posting Permissions

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