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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing parents variabl from iframe

Status
Not open for further replies.

TurboSRT4

Programmer
Nov 23, 2009
47
US
hello guy hoping for some help her please.

I have a variable in the parent document.
var holdShow = 'true';

how can i access this variable from an iframe?

i tried parent.document.holdShow
and many other things but i just keep getting undefined.

thanks in advance for any help
 
sorry i got it lol problem was i had the parent variable defined in a function :) parent.var worked fine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top