[thelist] The definitive, accessible, on the page javascript previous back button

Juha Suni juha.suni at ilmiantajat.fi
Tue Jan 10 08:31:42 CST 2006


----- Original Message ----- 
From: "Chris Hayes" <chris at lwcdial.net>
> So I've been asked to do one of those back button thangs
> It's more of a command than a request, so my advice to just say use the
> browser button is out.
>
> script:    onClick go back a page
>            onMouseOver show on window.status
>            onMouseOut return the status
> noscript: instruct to use the browser back button
>
> My question.. what is the de-facto accessible way to do this?
>
> I'm having some cross browser issues and the <a href="..."> is causing the
> browser to do odd things like go  back and then load the href location.

To avoid this from happening you need to return false from the onclick:
<a href="blah.html" OnClick="doStuff();return false;">back link</a>

HTH

-- 
Suni 




More information about the thelist mailing list