View Full Version : naughty frames and pop ups ;p

08-23-2002, 05:08 PM
My site (gulp) uses 2 frames, one for left navigation, one for content.


If you click on MUSIC in the left frame, a section comes up where you can click on song names and a pop up window appears with the song lyrics.

However, once this has been done (whether or not lyric window is closed), clicking on any of the links in the left frame starts opening them into a new window rather than the right frame!!!!! This ONLY happens once a lyric has been viewed...

Can anyone help explain/fix this? Thanks!!!! :o)

08-23-2002, 05:31 PM
You could try adding a base target in the navigation page.

<base target="content">
I see that there is already a target on the links, but it is like the browser get's confused. Another reference probably would not hurt. I don't see any other reason that it should act that way unless it has to do with the script that is catching the right mouse-click in the lyrics window, but that is just an onBlur, so I don't think it would be.


08-23-2002, 06:13 PM
thanks, but i added that and no change :o(

another page on my site GALLERY uses a different script, and no problems are experienced there...

can u maybe see a reason in the way that the scripts differ?


08-23-2002, 07:07 PM
Ok, I see it. Your function

openLyric( url) {
this.window.name = "main" renames the window
window.open( url, "window", "'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=no,width=350,height=40 0'");


it renames the window, and when it can't find "content" anymore, as it is now called "main", it opens in a new window. So comment it out, or delete it.