whatever the div contains, when clicked (#g1) it will add the content.
$('#g1').click(function(){
$(this).parent().append('I\'m a new link');
return false;
});
To append a web page to a div use post
$.post("dog.php",function(myresult){
$(".divarea").append(myresult);
});











