to re-iterate what William has said: you CAN'T control it.
what may seem to you like some website being able to control it is just
an illusion - it is just a combination of link attributes and/or
javascript controlling the link that makes a browser behave it a
particular way. note, though, that the same browser on another computer
may react totally differently to the same link/javascript - it all
depends on individual user's browser settings.

to give you an example: on my FF3 i have it set up that any link which
wants to open anew window will open instead in a new tab in the
background, unless the script that opens the link has defined a fixed
size for the window it opens, in which case i allow it to open in a new
window instead of a tab. furthermore, i have it set up in such a way
that same link will open a new tab every time it is clicked, no matter
if it defines a named window or not.

in Chrome i have it set up so that ANY link opens in a new tab, no
matter what link/script properties there are.

bottom line: you can't control it. this is pure user preferences that
you can't change via scripts or anything.

finally, a suggestion: since we are in the 21st century now, with Web2.0
and all, use floated divs to show 'pop-up' windows instead of trying to
open new tabs/windows in the user's browser. these 'in-line pop-ups' are
much more user-friendly and are trivial to code with modern js
frameworks like jquery.
and if you still want to use the old-school opening of content in a new
window - give your users a choice to open it the same tab/window or in a
new one if they want to (by providing a separate link that opens same
content in new tab/window using 'target' attribute or some javascript)
instead of forcing them to accept what you think is right for them.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Gonzo Rock wrote:
> Hey William,
>
> Somehow it IS controllable...
> for example:
> http://www.selexgalileo.com/SelexSAS/EN//index.sdo
>
> Notice that at the very top of that page, in Red, there is a link labeled
> Innovation... it opens Innovation in a new tab.
> Notice that there is another link at the bottom of the page, marked
> Credits... it opens in the same tab.
>
> The Innovation URL is contained in an iframe and the target is _blank and it
> opens in a tab.
> The Credits URL is of course a classic URL which opens in the same
> window/tab.
>
> But there is more to this... _blank always opens in a new window when I
> write it... can't figure out how to make this tabbed behavior happen and
> I've been goggling for most of the day reading and trying various
> approaches.
>
> Gonzo
>
> On Mon, May 11, 2009 at 5:07 PM, William Seiter <[email protected]> wrote:
>
>   
>> Gonzo,
>>
>> I am assuming that you are referring to the 'browser' tabs as opposed to a
>> tab in a cfajax element.
>>
>> The control over that part of the browser is only available to the computer
>> user.  There is a setting in most of the browser with tabs that I have
>> looked at, that allows new windows to be opened in a tab rather than a new
>> window.
>>
>> This is part of the 'sandbox' control of the browser.  That invisible line
>> between what a website can do on a computer and what it can't do.
>>
>> William
>>
>> -----Original Message-----
>> From: Gonzo Rock [mailto:[email protected]]
>> Sent: Monday, May 11, 2009 4:51 PM
>> To: cf-talk
>> Subject: making new tab the target of a url
>>
>>
>> How does one make a new tab, or a named tab for that matter, the target of
>> a
>> url?  Everything I try ends up in a new window, not a tab. ;-(
>> Thanks,
>> Gonzo
>>
>>
>>
>>
>>
>>     
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322401
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to