OK so I am at a loss for how to make this work any help would be appreciated.
I am still new to javascript so be gentle :)
Here is the code I have written...what it does is looks through a document and finds any button with _grid in the name assigns it a value and tells the user what page number the button resides on. The console.println lines give the user an output to copy and paste for later use. It works...it just maxes out the console because it loops through all the buttons (typically there are about 200 buttons with _grid in the name). Here it is (see next post):
http://wolfeden.info/console-println.jsx
http://wolfeden.info/rep-writetext.jsx