Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 24th, 2006, 12:39 PM
Registered User
 
Join Date: Jan 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

 
Old January 25th, 2006, 02:28 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

HI ihatejava!!

onclick of the buttonin one frame use

  If you have frame name
   parent.secondframe.document.bgColor="red"
  or
   parent.frames[1].document.bgColor="red"
  where first frame is access by index 0 ,secondframe is by 1 etc


hope this will help you


Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
Refreshing Frames in JavaScript dhruthi.ram99 Javascript 1 December 19th, 2007 10:20 AM
refreshing frames with javascript arnabghosh Javascript How-To 1 April 18th, 2006 07:14 AM
showing javascript context menus outside frames... jxn Javascript How-To 5 February 3rd, 2006 07:53 PM
cross frames with javascript drop-down menu crmpicco Javascript How-To 1 March 14th, 2005 12:57 PM
javascript drop-down menu that can cross-frames! crmpicco Javascript How-To 1 March 14th, 2005 12:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.