On Jun 11, 7:31 am, elia <jos...@pcl.chwrote:
Hello,
We change our server and before this code was ok:
<a href="#" onClick="history.back()">Retour</a>
..but on the new server, it doesn't work anymore??
There's no reason why a change in server should break code, but that
should be avoided for a number of reasons:
* It is a link to the top of the page. href="#" is not a sensible fall
back should JS fail
* It depends on JavaScript
* The user already has a back button, it is generally a bad idea to
waste space with a UI that duplicates a function built into the
browser but with a UI the user doesn't recognise.
* Links go forward. You have something that looks like a link, but
doesn't act like it.
Just remove it and let the user use their back button, or backspace
key, or Alt+Left Arrow, or Right Click and pick Back, or ...
--
David Dorward
http://dorward.me.uk/