hello is it possibleto to test if there a javascript function exist in a
other frame?
ferry lagarde
sponsored links
2
16th March 07:37
joe fawcett
External User
Posts: 1
exist
Assuming your other frame is named "fraMain" and the function is named
fnTest then:
if (top.frames.fraMain.fnTest)
should do it, alternatively:
if (topframes["fraMain"]["fnTest"])
--
Joe
joe fawcett
3
16th March 07:38
steve fulton
External User
Posts: 1
exist
If you want to be sure 'fnTest' is actually a function and not some other
object:
if (typeof top.frames.fraMain.fnTest == "function")
--
Steve
When a person can no longer laugh at himself, it is time for others to laugh at
him. -Thomas Szasz