Calling a function thats in a parrent page
ok - i have a web page with the following in it :
Code:
<script>
public function doStuff() {
bla bla
}
</script>
now what i want to do is call that function from a child page that is embeded within an iframe so heres how i have tried to call it:
Code:
<script>
parent.document.doStuff()
</script>
and also
Code:
<script>
parent.doStuff()
</script>
however none of these work - what am i doing wrong ?
Thanks in advance
Kris Bennett
Re: Calling a function thats in a parrent page
Try window.parent.window.doStuff(). It should work.