pavi
09-02-2002, 01:49 AM
Please could anyone help ?
I have a parent frameset page with 2 frames : "imgframe" and "controlframe"
In the imgframe is one image only, and the code
<img src="images/abc.jpg" name="imgspot" width="90" height="50">
I have a button in the controlframe. When clicked, I want to change the image in the imgframe.
I am trying to access it via :
parent.imgframe.document.images[0].src="images/newimg.jpg" or
parent.imgframe.document.imgspot.src="images/newimg.jpg"
but nothing is happening. (I also tried it without the "document." in there.)
I am sure it's a simple mistake but can't find previous posts which answer this.
I have a parent frameset page with 2 frames : "imgframe" and "controlframe"
In the imgframe is one image only, and the code
<img src="images/abc.jpg" name="imgspot" width="90" height="50">
I have a button in the controlframe. When clicked, I want to change the image in the imgframe.
I am trying to access it via :
parent.imgframe.document.images[0].src="images/newimg.jpg" or
parent.imgframe.document.imgspot.src="images/newimg.jpg"
but nothing is happening. (I also tried it without the "document." in there.)
I am sure it's a simple mistake but can't find previous posts which answer this.