Title: Back previous page button
Last modified: January 29, 2019

---

# Back previous page button

 *  Resolved [Yunis777](https://wordpress.org/support/users/yunis777/)
 * (@yunis777)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/back-previous-page-button/)
 * Hi,
 * i want to create a button with Maxbuttons plugin that takes the user to the previous(
   back) page when clicked on it. How do I do this? Btw, I have no experience with
   Javasript code whatsover.
 * Kind regards,
 * Yunis

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/back-previous-page-button/#post-11144821)
 * You can try to add this in the URL field:
 * > javascript:window.history.back();
 *  Thread Starter [Yunis777](https://wordpress.org/support/users/yunis777/)
 * (@yunis777)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/back-previous-page-button/#post-11145462)
 * Bas,
 * After I entered the code “javascript:window.history.back();” in the URL field,
   the security plugin WordFence warned me that the javascript code was something
   it did not recognize. It asked me if I wanted to ‘whitelist’ it.
 * See screenshot: [https://postimg.cc/R3ZvxnW7](https://postimg.cc/R3ZvxnW7)
 * Can it be whitelisted or could it compromise the site’s security in the long 
   run?
 * Kind regards,
 * Yunis
    -  This reply was modified 7 years, 2 months ago by [Yunis777](https://wordpress.org/support/users/yunis777/).
 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/back-previous-page-button/#post-11147965)
 * Hi,
 * No, this is perfectly safe.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Back previous page button’ is closed to new replies.

 * ![](https://ps.w.org/maxbuttons/assets/icon-128x128.png?rev=1378636)
 * [MaxButtons - Create buttons](https://wordpress.org/plugins/maxbuttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maxbuttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maxbuttons/)
 * [Active Topics](https://wordpress.org/support/plugin/maxbuttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxbuttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxbuttons/reviews/)

## Tags

 * [back button](https://wordpress.org/support/topic-tag/back-button/)
 * [button](https://wordpress.org/support/topic-tag/button/)
 * [previous button](https://wordpress.org/support/topic-tag/previous-button/)
 * [previous page](https://wordpress.org/support/topic-tag/previous-page/)

 * 3 replies
 * 2 participants
 * Last reply from: [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/back-previous-page-button/#post-11147965)
 * Status: resolved