Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    javascript and frames

    I have a javascript made. I have buttons (drop down affect) menus. The javascript has 3 forms and 3 menus.

    I want to have a menus in one frame and have the affect of the menus occur within another frame. How do I do this?

    I have a javascript that have the ability to change text size, background color and text color. It does that.

    But I want to put the buttons (onclick) into one frame and have the ability to change the color of another frame. I need help.... and I'm not a computer programmer or anything.

  • #2
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    947
    Thanks
    0
    Thanked 130 Times in 129 Posts
    if you want to open a page iin the other frame:
    parent.framename.location.href=something.htm;
    where framename is the name of the frame in which you want to open the document.

    if you want to run a function in the document that is in the other frame:
    parent.framename.document.functionname();

  • #3
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,522
    Thanks
    3
    Thanked 508 Times in 495 Posts


  •  

    Posting Permissions

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