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 27 people (37%) answered Yes
Recently 4 of 10 people (40%) 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.