Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling function in iframe using getElementById 1

Status
Not open for further replies.

maxpower1

Programmer
Jul 29, 2001
488
US
If I can do this when changing the src in my iframe:-

document.getElementById("myIframe").src = "test.html";

does anyone know how I can call a function inside the iframe
using this "getElementById" method from the parent form?

thanks



~za~
You can't bring back a dead thread!
 
Try this...

frameNode= document.getElementById("myIframe")
frameNode.functionName()

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top