Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


Type: script code
This should be set to code which is called when the user presses the Back button while on the current page. Return true to allow the previous page to be displayed and false to disallow moving to the previous page.

Document Tags and Contributors

 Contributors to this page: Sheppy, Marsf, Dria
 Last updated by: Sheppy,