On Dec 18, 10:57 pm, Ken Wagner <[email protected]>
wrote:
[...]
> Can this "back" browser function be invoked from a Rails "back" link?

Sure: <%= link_to 'Back', '#', {}, :onclick => 'history.go(-1)' %>

In most browsers, this will behave *exactly* like the Back button --
if the user has JavaScript turned on.

>
> TIA
>
> Ken

Best,
--
Marnen Laibow-Koser
[email protected]
http://www.marnen.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to