"back" function in java

does anyone know the coding for java that does the page back [go back one page] function in the browser when you click an image/button/link?

thanks