Are you talking about Firefox or Safari?
Firefox changed the default behavior of the horizontal scrollwheel motion from back/forward to horizontal scrolling with a relatively recent release. I think you can probably still get back to what you want by implementing the preferences change in reverse.
Specifically, do the following:
Navigate to "about:config"
Find the key mouse.horizscroll.withnokey.action (type part of the name into the search bar that comes up below the address bar to help find it)
Set the value of this key to 2.
You should now get back/forward navigation with the horizontal scroll.
EDIT: I know you said "any browser," but this used to be the default behavior in Firefox, which was a Firefox settings issue. As far as I know, there has never been a way, short of installing some special program, to get this behavior in Safari.