Cnhge form action attribute in framesets

B

books1999

Hi,

I have this frameset:

<FRAMESET id=fs1 border=0 name=mainFrameset frameSpacing=0 rows=26,*
frameBorder=no>
<FRAME name=TopFrame src="crystal_files/top.htm" noResize scrolling=no>
<FRAMESET id=fs2 border=0 frameSpacing=0 frameBorder=no cols=230,*>
<FRAME name=menuFrame src="crystal_files/menu.htm" scrolling=no>
<FRAME name=mainFrame src="crystal_files/rpg.htm">
</FRAMESET>
</FRAMESET>


I have a link in the mainFrame and when i click it i would like to
change the action attribute of the form name="search" that is in the
menuFrame to some other link. The menuFrame conatins several other
forms! How can i do this?

Thanks!
 
B

bobzimuta

if in one frame and you want to access the other, use the parent object
to get to the sibling frame.

using the sibling frame's name
parent.sibling_frame_name.document...

using the frames array
parent.frames[index].document...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,737
Latest member
Georgeengab

Latest Threads

Top