Why is the "Events" button grayed-out in the Hyperlink settings dialog box?

I want to add a javascript function to a link in a PDF I am working on, but the events button doesn’t seem to be available.

Thanks!