(insert photo of me pulling hair out)

What is the java script for a "back" link to whichever page I just came from!?