faqts : Computers : Programming : Languages : JavaScript : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 26 people (38%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

i am trying to get the name of the other frame from a frame and am getting 'access denied'errors

Aug 22nd, 2001 01:36
Simon Burnett, Dhiraj R,


Make sure you reference frames by going to the parent. 

For example:
<FRAMESET>
  <FRAME name=header src="head.htm">
  <FRAME name=main src="mypage.htm">
</FRAMESET>

you can reference the frames from the source html files by using:

parent.frames[0].name ---> returns 'header'
parent.frames[1].name ---> returns 'main'

This works in IE. Not tested it in NN.