On Thu, Feb 19, 2009 at 10:41 AM, KihOshk <goo...@microsopht.com> wrote:
>
> I was trying to avoid setting the location variable since the anchors
> that this method will be affecting can be either target=_self or
> target=_blank.
>
> I tried this, but the target assignment isn't respected:
>
> function callback(link,json)
> {
>        location.target=link.attr('target');
>        location.href=json.href;
> }

If there's a target set, just change the location of that window. Or,
create the window first, and then change the location. Keep in mind
that the target attribute can be the name of a window, just as the
window method accepts a name. Same thing.

Reply via email to