Add onclick handlers that don't call a function

In order to thoroughly check if a pop up is being opened the onclick
listener should be checked for a window.open as should any function that
is called as the result of a click.