Okay, that's one option, but depsite the attribute being deprecated,
shouldn't it still work?

Gareth


On 11/5/07, redheat <[EMAIL PROTECTED]> wrote:
>
>
> You should assign a click event to the link, as target is deprecated
> HTML.
>
> new Element('a', { href: 'http://www.google.co.nz' }).observe('click',
> function(e)
> {
>        e.stop();
>        window.open($(this).href, 'PREFIX_WindowName');
> });
>
> On Nov 5, 6:35 am, "Gareth Evans" <[EMAIL PROTECTED]> wrote:
> > Hey Guys
> >
> > I just tried to use
> >
> > new Element("a",{ href:"http://www.google.co.nz";, target:"_blank" });
> >
> > and can't get the target to take on the generated link, as it it always
> > opens in the current window.
> >
> > Can someone point out what i've done wrong, or possibly try the above
> and
> > tell me if it works for them?
> >
> > Gareth
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to