Welcome to WebmasterWorld Guest from 184.73.126.70

Forum Moderators: open

Message Too Old, No Replies

How to call from iframe?

   
1:43 pm on Jun 1, 2003 (gmt 0)

10+ Year Member



I have a.htm with an iframe(b.htm) in it.
There is a function called "up" in a.htm
If I want to call function "up" from b.htm, how should I write the code?

For example:

<body onload="xxx.up()">

5:00 pm on Jun 1, 2003 (gmt 0)

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



have you tried top.up()?
1:24 am on Jun 2, 2003 (gmt 0)

10+ Year Member



Thank you!
I tried "parent.up()", it works. I think it's same as "top.up()".
1:31 am on Jun 2, 2003 (gmt 0)

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



parent will work also. I like using top because it is an absolute path to a frame. I start out at the root then move to my target. parent is relative and can make a frame system hard to understand. It is personal preference. Glad it works. :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month