Using Javascript to get/set scroll of pdf in an htmlviewer

I use an HTMLViewer to display pdfs. I’d like to programatically be able to record what page a user is on and take him back to the page on request. I’ve tried to find out how that might be done with javascript, but so far have had no luck. Is this even possible with javascript and Xojo’s (desktop) HTMLViewer? If so, any hints would be appreciated. This is for Cocoa, BTW, although that shouldn’t matter.

If you can find the JavaScript command, you should be able to just call ExecuteJavascript to do it… But the trick is that you’re dealing with a browser plugin and whatever restrictive API it has.