On 11/5/07, Gareth Evans <[EMAIL PROTECTED]> wrote:
> Okay, that's one option, but depsite the attribute being deprecated,
> shouldn't it still work?

Yeah, it should. I just whipped up a test and target="_blank" worked
as advertised. (Browsers tested included Firefox, Opera, Safari, and
IE 6.) What browser are you using?

Also, I realize your example is devoid of context, but I noticed the
link doesn't have any associated text (e.g., new Element('a', { href:
'#', target: '_blank' }).insert('click me!')). If that's also the case
in the actual code, that could be your problem.

Although, as long as you're using JS to add "open in new window"
functionality anyway, it's more standards-friendly to add an event
handler as previously described.

:Dan Dorman

--~--~---------~--~----~------------~-------~--~----~
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