You might be better off using jQuery to bind the click event to your function, as the logic is better separated.
$('h2 a').click(function(event) {
$("#content").html("Loading...");
$.post("page.php", {p: page}, function(data){
$("#content").html(data);
});
return false;
});
Normally, if the parameter hrefis still active, a JavaScript error probably occurred.
: event.preventDefault(), href, .
, href ( ). ?