Browsers curently have “back” buttons, therefore you’d better have darn valid reason for the need to place one on the web web page! Input switch with inline JavaScript This will be completely obtrusive, you could fix that by just appending this button through JavaScript. If JavaScript is not a chance, the HTTP_REFERER could be used