Call parent function from iframe

2 views
Skip to first unread message

Gilson Carvalho

unread,
Mar 10, 2014, 4:03:30 PM3/10/14
to node-...@googlegroups.com
My app (index.html):

<script>
function test() {
    alert("parent function!");
}
</script>

<iframe src="http://localhost/iframe.html" ></iframe>

------------------------------------------------------------------------------------

iframe.html:

<a href="javascript:parent.test()" />Call</a>


Does not work! =/

Somebody help me?

Thanks!
Reply all
Reply to author
Forward
0 new messages