Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Re: Accessing a hidden element on another frame


Message #1 by "Ravinder Singh Shekhawat" <shekhawats@r...> on Sat, 22 Jun 2002 15:01:35
Why Dont you use the following :

  top.frames[item#].hiddenName.value

The same code will work for both IE and NS.
Item# is the child frame index#

I hope that helps

Ravi

> I currently have a frameset where one of the frame pages host a hidden 
input
> tag.  I would like to retrieve the value of this hidden tag from the 
second
> frame page.  In IE I can access the value by using:
> 
> 	top.frameName.formName.hiddenName.value
> 
> However I receive the following error in Netscape:
> 
> 
> 	top.frameName.formName.hiddenName has no properties. 
> 
> I am trying to stay optimistic that this is possible within Netscape if I
> just use the right combination of objects.  If anyone could help, it 
would
> be greatly appreciated.
> 
> Shaun

  Return to Index