 <p>You don't want to change an include. That's not an option.</p> <p>It seems that you want to use AJAX. You could load the content of the include in any element of the site using <a href="http://api.jquery.com/load/" rel="nofollow"><code>$.load</code></a>.</p> <p>For example. To load <code>link1.php</code> in the element <code>#links</code>, we could do:</p> <pre><code>$(document).ready(function() { $('.allbuttons #button1').click(function() { $('#links').load("http://"+ document.domain + "/includes/link1.php"); }); $('.allbuttons #button2').click(function() { $('#links').load("http://"+ document.domain + "/includes/link2.php"); }); }); </code></pre>