This is in response to tinyproxy's script...
The onload event is great for reporting an iframe's TITLE and URL as the user navigates but I wouldn't use it for clicks because every time the user navigates somewhere (using the left click) your script will be appending a new listener because the onload event will have triggered as the frame loads with new content!
A more correct way to listen for a right-click is…
FrameID.addEventListener('contextmenu',function(){Whatever();});