If the page is re-loading, you can do different things pretty easily
depending on the location value.

document.observe('dom:loaded', function() {
        if (location.hash.length > 1) {
                var string = location.hash.substring(1);

                if (string == 'foo') {
                        alert('foo');
                }

               if (string == 'baz') {
                       alert('baz');
        }
});

Is this what you were thinking of?

On Oct 9, 9:15 am, "Mauro Marchiori Neto" <[EMAIL PROTECTED]> wrote:
> Hello there!
>
> Is there a way to register a event on the browser window that gets called
> everytime the location/location.hash changes?
>
> maybe using element.observe? im not quite sure about it...im kinda lost
> actually.
>
> Atenciosamente
> --
> Mauro Marchiori Neto
> email: [EMAIL PROTECTED]
> cel: 19 9129.9960
> cel: 19 7806.9676
> id: 80*15224
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to