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