@Fishy I had no idea that PDF files could be scripted even. Wouldn't it be easier to add a link to an anchor (or whatever is the PDF equivalent) in the page you want to link to? Above all, if you go the scripting way, are you sure every reader supports parsing/expecting arbitrary JS?
@Elessar If you understand the binary file format, you can do some creative stuff with PDF files. I have a couple of guys on my team, whose job is to stay up to speed on changes, so we can produce PDFs that can be manipulated, signed, etc.