2 Replies - 672 Views - Last Post: 10 February 2013 - 08:33 AM

#1 amatzprogrammer  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 75
  • Joined: 07-July 11

MAIN FILE AND FRAMES

Posted 10 February 2013 - 06:30 AM

Is the elements of the main file is accessible by the frame?
For example, i have button in my frame. onclick button, a customized dialog should pop up.
If so, can you give me some tutorial or links on how to do it? Thanks!
Is This A Good Question/Topic? 0
  • +

Replies To: MAIN FILE AND FRAMES

#2 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3316
  • View blog
  • Posts: 11,194
  • Joined: 12-December 12

Re: MAIN FILE AND FRAMES

Posted 10 February 2013 - 07:50 AM

I assume (hope!) that you are referring to an iframe rather than a frame? Anyway, parent references the parent window for the frame.

MDN

So then you might use parent.document.getElementById("someid");

This post has been edited by andrewsw: 10 February 2013 - 07:57 AM

Was This Post Helpful? 0
  • +
  • -

#3 amatzprogrammer  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 75
  • Joined: 07-July 11

Re: MAIN FILE AND FRAMES

Posted 10 February 2013 - 08:33 AM

Thanks for the reply. Yes sir. I am referring to iframe. I'll try it in my code! :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1