Call Java Script Function from Iframe

Posted by Jpchoudhari under JavaScript on 1/18/2013 | Points: 10 | Views : 1209 | Status : [Member] | Replies : 1
Hi,

Can we call a Javascript function of a parent page from Ifrmae, how?

URL of parent page is www.abc.com and URL of the Page in Ifrmae is xyz.abc.com. Bascically a sub-domain.

Kind Regards,
Jay



Responses

Posted by: Sourabh07 on: 1/18/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,

Please refer below code :

<a onclick="parent.abc();" href="#" >Call Me </a>


For detail analysis go through url - https://developer.mozilla.org/en-US/docs/DOM/window.parent


Please mark this answer, if it resolve your problem

Sourabh07

Jpchoudhari, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response