This question has already been answered:
- Pop-up windows with a change in the address bar 5 responses
Here is an example code. When clicking on "Click" in a div with class = "red", conten_reg.php is loaded.
How to make the url change and be working?
JQUERY
$(document).ready(function(){ $("#dlb").click(function(){ $(".red").load("conten_reg.php"); }) });
Html
<div class="red"> <span id="dlb">Клик</span> </div>