Title: Back button in header
Last modified: August 21, 2016

---

# Back button in header

 *  [ron regev](https://wordpress.org/support/users/ron-regev/)
 * (@ron-regev)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/back-button-in-header/)
 * hello,
 * I gave to the header some java script code that i found here:
 *     ```
       <a href="javascript:history.go(-1)" onMouseOver="self.status=document.referrer;return true">Go Back</a>
       ```
   
 * I have 2 problems:
    1) how can i control the button to appear in the header only
   when I’m in posts? and if not, the menu button replace him.
 * 2) the script move back 1 step. if I submit comment in some post, it’s 2 steps
   of loading so I need to click twice to go back to the last category. it is possible
   to create script that move back to the last category?
 * Thank you.

The topic ‘Back button in header’ is closed to new replies.

## Tags

 * [php wordpress java script html](https://wordpress.org/support/topic-tag/php-wordpress-java-script-html/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [ron regev](https://wordpress.org/support/users/ron-regev/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/back-button-in-header/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
