Something like this...
The trigger is a string and can be any one of...
Thanks. Can you also tell me how to set the action to open a bookmark?
What do you mean by "open a bookmark", exactly?
I am looking to open a bookmark with the code below instead of going to a page number.
var f = this.getField("Button1"); f.setAction("MouseUp", "this.pageNum = 1";
You'll need to iterate over the entire bookmark tree, looking for that bookmark's name, and when you find it you can use the execute method to run the action associated with it.