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

Thread: Call functions from frames?

  1. #1
    Join Date
    Nov 2005
    Posts
    60

    Smile Call functions from frames?

    Hi,
    I have devided my window in frames. I wrote functions in main document of top window. Is there a way to execute them with the buttons in the frames?

    I tried: top.document.location.set_cookie("color","red");

    Does not seem to be correct.

    Thanks in advance for any suggestions.

  2. #2
    Join Date
    Sep 2004
    Posts
    361
    Rudo-

    Use parent.top.set_cookie("color","red");

    or
    parent.frames[0].set_cookie("color","red");

    frames[0] is the frames array index staring with 0 to the number of frames in the frameset.

    -BIll
    Last edited by cyber1; 11-30-2005 at 07:43 AM.

  3. #3
    Join Date
    Nov 2005
    Posts
    60

    Thumbs up

    Hi Bill,
    Thank you very much.
    Use parent.top.set_cookie("color","red"); is the code I need.
    I appreciate your help.
    Rudo

Thread Information

Users Browsing this Thread

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

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