How to detect link clicks text images etc with a javascript expression or any other way

I Have a widget file viewer in my form and just below it a checkbox (boolean). The condition I need to implement, is that it will only be possible to fill this checkbox when the user has read the file that appears as a link in the "file viewer". 

Would appreciate a little help here... Thank you