Back & Forward buttons for web view

Hi the code below works great for loading web pages into web view, id like to expand on this
by adding a “Back one page” and “Forward one page” button to the script, how would I go about
doing this please.

on clicked theObject
	if name of theObject is "FAP" then
		my load_webpage("http://www.insidersoftware.com/DL_index.php")
		end if
 end clicked

on load_webpage(this_URL)
	try
		set URLWithString to call method "URLWithString:" of class "NSURL" with parameter this_URL
		set request_URL to call method "requestWithURL:" of class "NSURLRequest" with parameter URLWithString
		set main_Frame to call method "mainFrame" of object (view "webView" of window "main")
		call method "loadRequest:" of main_Frame with parameter request_URL
	end try
end load_webpage

Cheers
Budgie

You can actually do this without code by connecting a button to the webview’s goBack: action. We have a video example of connecting a menu item to a window; Instead of dragging from a menu item to a window, you would drag from the button to webview.

Hi Bruce

great stuff, just set it up, works like a charm

much appreciated

Budgie