Help - use PHP-broswer, or proxy or get_page_contents or include page, or something else?
<p>I am trying to develop a web application for which I need to capture a specific user-driven event (such as mouse dblclick) occurring on a different-website page loaded through my website.</p>

<p>What I want to do is :</p>

<ol>
<li>User visits my website - hosted by me.</li>
<li>There, user types in any website URL (e.g.: <a href="http://www.example.com" rel="nofollow">http://www.example.com</a>)</li>
<li>That URL page gets loaded as is.  </li>
<li>When user double-clicks mouse over any link or image from that page, a popup/side-panel is displayed with content related to that particular image or link.</li>
</ol>

<p>I can do this with a combination of PHP get_page_contents or include-page, and javascript dblclick.
However, when user clicks on any link or submits a form, the control goes to that other website, where I cannot show the side-panel.
I might be able to handle the links by proxifying them when user clicks on any of them. How do I handle forms submission and other stuff ?
I can use a full-featured proxy, but that will be too heavy just for the purpose of capturing the event.</p>

<p>My question is that is there a way to write some kind of light PHP script that sits on my website - that loads other websites contents as is, but lets me capture the mouse-dblclick event to show related-content in the side panel .</p>

<p>I have already searched the internet, but could not find anything.</p>

<p>Any help is really appreciated. Thanks.</p>
