Thank you so much for your response! It really helped clarify what exactly my problem is. The field that contains the link I want to click to produce this behavior is embedded within a custom contraption, and for some reason that is causing some hiccup in my attempts to override the default behavior. So far I have tried adding this code to the script for the custom contraption and adding this code to the script for the embedded field in the prototype, but no luck yet. I'll keep trying though!