I have a web page made up of frames--a left frame then a nested frameset with top, middle, and bottom---and a right frame. A hotspot on the right frame generates a popup window. I want to be able to click on a hotspot within the pop up window and have an image fill the middle frame. My code actually works, but when I click on the popup window, I am getting the file structure of the folder that the htm files are in.
Here is the code that is in the popup window....followed by the code for the onclick event.
-------------------------------------------------
function frameNavig(source) {
opener.parent.frames['middle'].window.location= source;
}
---------
OnClick="parent.frameNavig('test.htm')"
Please help me to pass the variable from the popup window into the frameset. Thanks.
Thanks Anarchos....it worked and is cleaner code but i still have the problem of after clicking on the area in the popup window, the popup window then displays the file directory of my hard drive...wierd but true. If I can stop that then it is perfect. If you or anyone know why it is doing that it would be great.
Bookmarks