PDA

View Full Version : combine target="_top" and frames in ONE target variable


sybrec
03-24-2006, 02:42 PM
what's the closest target attribute that combines "_top" and iframes (eg. target=""). It's for a link(!) from and to a frame!

can two variables for the target be called, and how is that done, just one after another? can iframes even BE one of the two being called? (a target variable? (in some shape or form?))

Maybe something similar? :rolleyes:

I hope the concept is available in my writings! Thanks in advance. :)

felgall
03-24-2006, 08:19 PM
You can only target one place at a time. If you want to target multiple frames at once you include multiple calls in your Javascript. In any case Javascript doesn't use the target attribute to target frames. See http://javascript.about.com/library/bltarget.htm for info on how to target frames in Javascript.

sybrec
03-25-2006, 07:45 AM
You can only target one place at a time. If you want to target multiple frames at once you include multiple calls in your Javascript. In any case Javascript doesn't use the target attribute to target frames. See http://javascript.about.com/library/bltarget.htm for info on how to target frames in Javascript.
I'm hoping to break out of the framed menu when the link is clicked, so the user stays on a full browser, but retain the current domain, thus using iframes.

It's possible i'm looking at this wrong.

Mr J
03-25-2006, 02:12 PM
Not too sure if I fully understand your question but the following will open page1 in a new window and load page 2 into the iframe


<a href="page1.htm" target="_blank" onclick="parent.framename.location='page2.htm'">Link</a>