Hello,
Here's a small example of code to open a new window when a link is
clicked. The below code works fine in FF, but IE 7 opens the URL in
the same window. How come?
$('element-id').observe('click', function(event)
{
window.open(event.element().getAttribute('href'), 'window-id');
Event.stop(event);
});
Regards,
Rytis
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---