Detect when link is clicked, open in new frame
<p>I would like to create a basic URL rewrite using frames.  I don't have access to .htaccess to do mod_rewrite.  Is there a way using PHP, jQuery, JavaScript etc. to detect which URL has been clicked on and then open URL in new frame?  Ex:  user clicks on <code>/index.php?12345</code> it will open in framed window <code>/pages/12345/index.html</code> and if they click on <code>/index.php?54321</code> URL will open in framed window <code>/pages/54321/index.html</code></p>
