Uhm, I'm not possitive as to what you mean, but if you are talking about buttons that allow you to do thsoe things in a webpage, check out Javascriptcity.com, it'll give you tutorials and sample scripts to work with.
It's relatively easy, so don't sweat it.
e.g.
"history.back()"
"history.forward()"