I made this PDF form button with three different states (and images) for normal, mouseover and pressed, and all works as expected.
However, there still appears this dotted rectangle around the button as soon as the button gets focus (e.g. by pressing it, or by just hitting the Tab key on the keyboard):
How can I prevent or hide that focus rectangle in my PDF file?
Is it somehow possible to auto-execute a "focusRect/hide" JavaScript command on opening the document, such that all focus rectangles are hidden?
Acrobat JavaScript Scripting Reference