You don’t actually need the back or forward button anymore to browse through the pages back and forth in Safari on iPhone or iPad that is running the new iOS 7. And here is what you can do:
Simply swipe from the left side edge of the screen to the right to go back to the previous page, and swipe from the right side edge of the screen to the left to go forward to the next page, if there is one.