English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

the code for the image in the parent frame is as follows:



the code I'm using inside the iFrame (named "main")

Home

(I used spaces so Yahoo doesn't omit anything.)

Anyway, what path should I use in place of the "window. document. theImage. src" to make this work?

2006-09-18 10:53:17 · 3 answers · asked by Rockstar 6 in Computers & Internet Programming & Design

No good, tried that. Also tried:

window.parent.document.theImage.src
and
window.parent.theImage.src

2006-09-18 10:58:47 · update #1

3 answers

try top.window the top makes the javascript leave the iframe back into the normal page. it's just like target="_top" in a link.

2006-09-18 11:04:48 · answer #1 · answered by Anonymous · 0 0

try window.document.parent (if the script is in the frame)

2006-09-18 17:55:56 · answer #2 · answered by Dragosh 3 · 0 0

_ try:

top.document.theImage.src

2006-09-18 17:58:50 · answer #3 · answered by agbrisco 4 · 0 0

fedest.com, questions and answers