Is there any way to reach the elements inside of the object tag?

hi,
i have a web site and it has object tags in it.the object tag consists another website.i’m trying to do that,reaching the embedded page,which
identifying object tag and make some processes according to main page and embedded page.
i actually want to do that,i create a button on mainpage.but i want to appear that button,only user clicks inside some of the embedded site’s button.

is there any way to do this?