This is a discussion on "acess div that is outside of a iframe" within the Web Page Design section. This forum, and the thread "acess div that is outside of a iframe are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
acess div that is outside of a iframe
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
acess div that is outside of a iframe
hi,
i have in main index a div called teste <div id="teste"><b>over</b></div and i want acess this div"change de content" from a iframe if i want acess this div"change de content" in the same place i use this: document.getElementById("teste").innerHTML=xpto but how can i change inside a iframe? thanks for your help |
|
|
|
||||
|
Re: acess div that is outside of a iframe
you could use the same thing but specify the absolute location in the parent.
parent.document.getElementById('teste').innerHTML = xpto;
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Tags |
| div |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Iframe background | goangus | Web Page Design | 0 | Apr 22nd, 2008 12:26 |
| [SOLVED] refresh a different iframe once an iframe elsewhere has loaded | cosmicbdog | JavaScript Forum | 1 | Jan 25th, 2008 01:50 |
| Can a jsp file in an IFrame calls a javascript function outside of the IFrame | jadeite100 | JavaScript Forum | 0 | May 31st, 2007 14:29 |
| PHP Iframe URLS | Darkwoods | PHP Forum | 0 | May 16th, 2006 11:08 |
| <iframe> | u2orange | Web Page Design | 10 | Nov 29th, 2003 20:06 |