how to call a function in another window

R

Ricardo Garcia

hi, i have a page with frames, and i want to call from the main frame a
method in the navigation frame.
how could i do it??

What i want get with this, is styling in a different way the link that
points to the current page.

Thanks
 
J

Java script Dude

Ricardo Garcia said:
hi, i have a page with frames, and i want to call from the main frame a
method in the navigation frame.
how could i do it??

What i want get with this, is styling in a different way the link that
points to the current page.

Thanks

1 Resolve window object of Navigation frame
var w = window.parent.frames["winNavigation"]
2 Call function using window namespace
w.functionName()

That's it.

Just remember, functions that are globally declared are really methods of window.

JsD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top